Skip to content

Commit 7ce754a

Browse files
authored
chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3024)
* chore(eslint.config.mjs): update 'eslint-plugin-react-hooks' config to use 'recommended-latest' * chore(eslint.config.mjs): update 'eslint-plugin-react-compiler' config
1 parent a38128d commit 7ce754a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

eslint.config.mjs

+2-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ export default tseslint.config(
1717
tseslint.configs.recommended,
1818
react.configs.flat.recommended,
1919
react.configs.flat['jsx-runtime'],
20+
reactHooks.configs['recommended-latest'],
21+
reactCompiler.configs.recommended,
2022
{
21-
plugins: {
22-
'react-compiler': reactCompiler,
23-
'react-hooks': reactHooks,
24-
},
2523
settings: {
2624
react: {
2725
version: 'detect',
@@ -74,8 +72,6 @@ export default tseslint.config(
7472
'warn',
7573
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
7674
],
77-
'react-compiler/react-compiler': 'warn',
78-
...reactHooks.configs.recommended.rules,
7975
},
8076
},
8177
{

0 commit comments

Comments
 (0)