File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,9 @@ module.exports = {
376
376
ignoreRestSiblings : true ,
377
377
} ,
378
378
] ,
379
- '@typescript-eslint/no-use-before-define' : [ 'error' , { functions : false } ] ,
379
+ // no-use-before-define goes against the top-to-bottom rule and TypeScript protects against most temporal deadzone bugs.
380
+ // https://dzone.com/articles/the-stepdown-rule
381
+ '@typescript-eslint/no-use-before-define' : 'off' ,
380
382
'@typescript-eslint/no-useless-constructor' : 'error' ,
381
383
'@typescript-eslint/no-var-requires' : 'error' ,
382
384
'@typescript-eslint/prefer-as-const' : 'error' ,
@@ -419,7 +421,6 @@ module.exports = {
419
421
rules : {
420
422
'no-var' : 'off' ,
421
423
'@typescript-eslint/explicit-member-accessibility' : 'off' ,
422
- '@typescript-eslint/no-use-before-define' : 'off' ,
423
424
'unicorn/prevent-abbreviations' : 'off' ,
424
425
'id-length' : 'off' ,
425
426
} ,
You can’t perform that action at this time.
0 commit comments