Skip to content

Commit

Permalink
Update eslint config for jsx-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
szhsin committed Jan 13, 2025
1 parent fb15483 commit a5777ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default [
jest.configs['flat/recommended'],
jest.configs['flat/style'],
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
reactHooksAddons.configs.recommended,
{
ignores: ['**/dist/', '**/types/', '**/coverage/', '**/example/']
Expand All @@ -39,8 +40,6 @@ export default [
}
},
plugins: {
jest,
react,
'react-hooks': reactHooks
},
rules: {
Expand All @@ -57,7 +56,6 @@ export default [
assertFunctionNames: ['expect', 'utils.expect*']
}
],
'react/react-in-jsx-scope': 0,
'react/prop-types': 0,
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-hooks-addons": "^0.4.1",
"globals": "^15.14.0",
Expand Down

0 comments on commit a5777ce

Please sign in to comment.