File tree 3 files changed +23
-30
lines changed
3 files changed +23
-30
lines changed Original file line number Diff line number Diff line change
1
+ export { default } from './index.js' ;
Original file line number Diff line number Diff line change 11
11
"url" : " https://sindresorhus.com"
12
12
},
13
13
"type" : " module" ,
14
- "engines" : {
15
- "node" : " >=12"
16
- },
17
- "scripts" : {
18
- "test" : " ava"
19
- },
20
14
"exports" : {
21
15
"." : " ./index.js" ,
22
16
"./space" : " ./space.js"
23
17
},
18
+ "sideEffects" : false ,
19
+ "engines" : {
20
+ "node" : " >=18.18"
21
+ },
22
+ "scripts" : {
23
+ "test" : " eslint && ava"
24
+ },
24
25
"files" : [
25
26
" index.js" ,
26
27
" space.js"
55
56
" hint" ,
56
57
" simple"
57
58
],
59
+ "dependencies" : {
60
+ "eslint-plugin-react" : " ^7.37.4" ,
61
+ "eslint-plugin-react-hooks" : " ^5.1.0"
62
+ },
58
63
"devDependencies" : {
59
64
"ava" : " ^6.2.0" ,
60
65
"eslint" : " ^9.18.0" ,
61
- "eslint-plugin-react" : " ^7.29.0" ,
62
- "eslint-plugin-react-hooks" : " ^5.1.0" ,
63
- "react" : " ^17.0.2"
66
+ "react" : " ^19.0.0"
64
67
},
65
68
"peerDependencies" : {
66
- "eslint" : " >=9.18.0" ,
67
- "eslint-plugin-react" : " >=7.29.0" ,
68
- "eslint-plugin-react-hooks" : " >=5.1.0"
69
+ "eslint" : " >=9.18.0"
69
70
}
70
71
}
Original file line number Diff line number Diff line change 5
5
## Install
6
6
7
7
``` sh
8
- npm install --save-dev eslint-config-xo eslint-config-xo-react eslint-plugin-react eslint-plugin-react-hooks
8
+ npm install --save-dev eslint-config-xo eslint-config-xo-react
9
9
```
10
10
11
11
## Usage
12
12
13
13
Add some ESLint config to your ` eslint.config.js ` :
14
14
15
15
``` js
16
- // eslint.config.js
17
16
import xo from ' eslint-config-xo' ;
18
17
import xoReact from ' eslint-config-xo-react' ;
19
18
20
- export default [... xo, ... xoReact];
19
+ export default [
20
+ ... xo,
21
+ ... xoReact
22
+ ];
21
23
```
22
24
23
25
Use the ` space ` sub-config if you want 2 space indentation instead of tabs:
24
26
25
27
``` js
26
- // eslint.config.js
27
- import xo from ' eslint-config-xo' ;
28
- import xoReactSpace from ' eslint-config-xo-react/space' ;
29
-
30
- export default [... xo, ... xoReactSpace];
31
- ```
32
-
33
- You can also mix it with a [ eslint-config-xo] ( https://github.com/xojs/eslint-config-xo ) sub-config:
34
-
35
- ``` js
36
- // eslint.config.js
37
28
import xoSpace from ' eslint-config-xo/space' ;
38
29
import xoReactSpace from ' eslint-config-xo-react/space' ;
39
30
@@ -43,12 +34,12 @@ export default [
43
34
];
44
35
```
45
36
46
- ## Tip
37
+ <!-- ## Tip
47
38
48
39
### Use with XO
49
40
50
- ```
51
- $ npm install --save-dev eslint-config-xo-react eslint-plugin-react eslint-plugin-react-hooks
41
+ ```sh
42
+ npm install --save-dev eslint-config-xo-react eslint-plugin-react eslint-plugin-react-hooks
52
43
```
53
44
54
45
```json
@@ -58,7 +49,7 @@ $ npm install --save-dev eslint-config-xo-react eslint-plugin-react eslint-plugi
58
49
"extends": "xo-react"
59
50
}
60
51
}
61
- ```
52
+ ``` -->
62
53
63
54
## Related
64
55
You can’t perform that action at this time.
0 commit comments