diff --git a/src/modules/react.js b/src/modules/react.js index 6882ce2..2d32d76 100644 --- a/src/modules/react.js +++ b/src/modules/react.js @@ -10,11 +10,6 @@ function react() { 'react-hooks': hooksPlugin, 'jsx-a11y': a11yPlugin, }, - languageOptions: { - globals: { - React: 'readonly', - }, - }, settings: { react: { pragma: 'React', @@ -77,9 +72,9 @@ function react() { '@eslint-react/hooks-extra/prefer-use-state-lazy-initialization': 'warn', '@eslint-react/naming-convention/component-name': 'warn', - '@eslint-react/naming-convention/filename': 'warn', - '@eslint-react/naming-convention/filename-extension': 'warn', - '@eslint-react/naming-convention/use-state': 'warn', + '@eslint-react/naming-convention/filename': 'off', + '@eslint-react/naming-convention/filename-extension': { extensions: ['.jsx', '.tsx'] }, + '@eslint-react/naming-convention/use-state': 'off', 'react-hooks/exhaustive-deps': 'warn', 'react-hooks/rules-of-hooks': 'error', diff --git a/src/modules/typescript.js b/src/modules/typescript.js index 61df4ab..7bfb70e 100644 --- a/src/modules/typescript.js +++ b/src/modules/typescript.js @@ -263,6 +263,7 @@ function typescript(options = {}) { 'dot-notation': 'off', 'no-throw-literal': 'off', 'require-await': 'off', + 'no-undef': 'off', }, }; }