mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
Enable tsconfig noUncheckedIndexedAccess
This commit is contained in:
@@ -174,7 +174,8 @@ async function lintMessages() {
|
||||
const key = topProp.key.value;
|
||||
|
||||
if (process.argv.includes('--test')) {
|
||||
const test = tests[key];
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const test = tests[key]!;
|
||||
const actualErrors = reports.map(report => report.id);
|
||||
deepEqual(actualErrors, test.expectErrors);
|
||||
continue;
|
||||
|
||||
@@ -37,7 +37,8 @@ export default rule('wrapEmoji', context => {
|
||||
return;
|
||||
}
|
||||
|
||||
const child = element.children[0];
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const child = element.children[0]!;
|
||||
if (!isLiteralElement(child)) {
|
||||
// non-literal
|
||||
context.report(
|
||||
|
||||
Reference in New Issue
Block a user