Skip to content

Commit bdaccf7

Browse files
vincentjames501ianschmitz
authored andcommitted
Adjust typescript-eslint to not warn about typedefs when used before defined (facebook#7079)
1 parent 4704382 commit bdaccf7

File tree

1 file changed

+10
-0
lines changed
  • packages/eslint-config-react-app

1 file changed

+10
-0
lines changed

packages/eslint-config-react-app/index.js

+10
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ module.exports = {
7979
'no-array-constructor': 'off',
8080
'@typescript-eslint/no-array-constructor': 'warn',
8181
'@typescript-eslint/no-namespace': 'error',
82+
'no-use-before-define': 'off',
83+
'@typescript-eslint/no-use-before-define': [
84+
'warn',
85+
{
86+
functions: false,
87+
classes: false,
88+
variables: false,
89+
typedefs: false,
90+
},
91+
],
8292
'no-unused-vars': 'off',
8393
'@typescript-eslint/no-unused-vars': [
8494
'warn',

0 commit comments

Comments
 (0)