Skip to content

Commit 463edb1

Browse files
authored
Turn off @typescript-eslint/no-non-null-assertion for test files (#675)
1 parent ab5a3da commit 463edb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,11 @@ module.exports = {
152152
'import/no-unresolved': 'off',
153153
},
154154
},
155+
{
156+
files: ['**/*.spec.js', '**/*.test.js', '**/tests-*.js', '**/*.spec.ts', '**/*.test.ts', '**/tests-*.ts'],
157+
rules: {
158+
'@typescript-eslint/no-non-null-assertion': 'off',
159+
},
160+
},
155161
],
156162
};

0 commit comments

Comments
 (0)