File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ function _getPossibleEventMessages(event: Event): string[] {
177
177
178
178
let lastException ;
179
179
try {
180
- // @ts -ignore Try catching to save bundle size
180
+ // @ts -expect-error Try catching to save bundle size
181
181
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
182
182
lastException = event . exception . values [ event . exception . values . length - 1 ] ;
183
183
} catch ( e ) {
Original file line number Diff line number Diff line change @@ -26,13 +26,9 @@ module.exports = {
26
26
// Unused variables should be removed unless they are marked with and underscore (ex. _varName).
27
27
'@typescript-eslint/no-unused-vars' : [ 'error' , { argsIgnorePattern : '^_' } ] ,
28
28
29
- // Make sure that all ts-ignore comments are given a description.
30
- '@typescript-eslint/ban-ts-comment' : [
31
- 'warn' ,
32
- {
33
- 'ts-ignore' : 'allow-with-description' ,
34
- } ,
35
- ] ,
29
+ // Do not use ts-ignore, use ts-expect-error instead.
30
+ // Also make sure that all ts-expect-error comments are given a description.
31
+ '@typescript-eslint/ban-ts-comment' : 'error' ,
36
32
37
33
// Types usage should be explicit as possible, so we prevent usage of inferrable types.
38
34
// This is especially important because we have a public API, so usage needs to be as
You can’t perform that action at this time.
0 commit comments