@@ -2,21 +2,19 @@ import pluginJs from '@eslint/js';
2
2
import { defineConfig } from 'eslint/config' ;
3
3
import importX from 'eslint-plugin-import-x' ;
4
4
import jsdoc from 'eslint-plugin-jsdoc' ;
5
- import react from 'eslint-plugin-react' ;
5
+ import react from 'eslint-plugin-react-x ' ;
6
6
import globals from 'globals' ;
7
7
8
8
export default defineConfig ( [
9
9
pluginJs . configs . recommended ,
10
10
importX . flatConfigs . recommended ,
11
+ react . configs . recommended ,
11
12
{
12
13
ignores : [ 'out/' , 'src/generators/api-links/__tests__/fixtures/' ] ,
13
14
} ,
14
15
{
15
16
files : [ '**/*.{mjs,jsx}' ] ,
16
- plugins : {
17
- jsdoc,
18
- react,
19
- } ,
17
+ plugins : { jsdoc } ,
20
18
languageOptions : {
21
19
ecmaVersion : 'latest' ,
22
20
parserOptions : {
@@ -28,8 +26,6 @@ export default defineConfig([
28
26
} ,
29
27
rules : {
30
28
'object-shorthand' : 'error' ,
31
- 'react/jsx-uses-react' : 'error' ,
32
- 'react/jsx-uses-vars' : 'error' ,
33
29
'import-x/namespace' : 'off' ,
34
30
'import-x/no-named-as-default' : 'off' ,
35
31
'import-x/no-named-as-default-member' : 'off' ,
@@ -52,6 +48,8 @@ export default defineConfig([
52
48
} ,
53
49
} ,
54
50
] ,
51
+ // We use [] as default props.
52
+ 'react-x/no-unstable-default-props' : 'off' ,
55
53
} ,
56
54
} ,
57
55
{
0 commit comments