We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-use-before-define
1 parent 6e21c8a commit fc82044Copy full SHA for fc82044
typescript.js
@@ -31,5 +31,10 @@ module.exports = {
31
// The stock `no-unused-vars` ESlint rule doesn't play with TS.
32
'no-unused-vars': 'off',
33
'@typescript-eslint/no-unused-vars': ['error'],
34
+
35
+ // The stock `no-use-before-define` ESLint rule throws errors when TS interfaces, types, and
36
+ // enums are used before they're defined -- eventhough in TS that's OK.
37
+ 'no-use-before-define': 'off',
38
+ '@typescript-eslint/no-use-before-define': ['error'],
39
},
40
};
0 commit comments