Skip to content

Commit 4765c29

Browse files
committed
Require Node.js 18
1 parent 1cf2106 commit 4765c29

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {default} from './index.js';

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
"url": "https://sindresorhus.com"
1212
},
1313
"type": "module",
14-
"engines": {
15-
"node": ">=12"
16-
},
17-
"scripts": {
18-
"test": "ava"
19-
},
2014
"exports": {
2115
".": "./index.js",
2216
"./space": "./space.js"
2317
},
18+
"sideEffects": false,
19+
"engines": {
20+
"node": ">=18.18"
21+
},
22+
"scripts": {
23+
"test": "eslint && ava"
24+
},
2425
"files": [
2526
"index.js",
2627
"space.js"
@@ -55,16 +56,16 @@
5556
"hint",
5657
"simple"
5758
],
59+
"dependencies": {
60+
"eslint-plugin-react": "^7.37.4",
61+
"eslint-plugin-react-hooks": "^5.1.0"
62+
},
5863
"devDependencies": {
5964
"ava": "^6.2.0",
6065
"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"
6467
},
6568
"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"
6970
}
7071
}

readme.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,26 @@
55
## Install
66

77
```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
99
```
1010

1111
## Usage
1212

1313
Add some ESLint config to your `eslint.config.js`:
1414

1515
```js
16-
// eslint.config.js
1716
import xo from 'eslint-config-xo';
1817
import xoReact from 'eslint-config-xo-react';
1918

20-
export default [...xo, ...xoReact];
19+
export default [
20+
...xo,
21+
...xoReact
22+
];
2123
```
2224

2325
Use the `space` sub-config if you want 2 space indentation instead of tabs:
2426

2527
```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
3728
import xoSpace from 'eslint-config-xo/space';
3829
import xoReactSpace from 'eslint-config-xo-react/space';
3930

@@ -43,12 +34,12 @@ export default [
4334
];
4435
```
4536

46-
## Tip
37+
<!-- ## Tip
4738
4839
### Use with XO
4940
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
5243
```
5344
5445
```json
@@ -58,7 +49,7 @@ $ npm install --save-dev eslint-config-xo-react eslint-plugin-react eslint-plugi
5849
"extends": "xo-react"
5950
}
6051
}
61-
```
52+
``` -->
6253

6354
## Related
6455

0 commit comments

Comments
 (0)