Skip to content

Commit

Permalink
fix: fix undef and ts
Browse files Browse the repository at this point in the history
ASafaeirad committed Jun 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 098fc0b commit 43fb9b4
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/modules/react.js
Original file line number Diff line number Diff line change
@@ -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',
1 change: 1 addition & 0 deletions src/modules/typescript.js
Original file line number Diff line number Diff line change
@@ -263,6 +263,7 @@ function typescript(options = {}) {
'dot-notation': 'off',
'no-throw-literal': 'off',
'require-await': 'off',
'no-undef': 'off',
},
};
}

0 comments on commit 43fb9b4

Please sign in to comment.