eslint-config-xo-next 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/readme.md +4 -4
- /package/{index.d.ts → config.d.ts} +0 -0
- /package/{index.js → config.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-xo-next",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "ESLint shareable config for Next.js to be used with eslint-config-xo-react",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:patrik-csak/eslint-config-xo-next",
|
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"types": "./
|
|
12
|
-
"default": "./
|
|
11
|
+
"types": "./config.d.ts",
|
|
12
|
+
"default": "./config.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": "22 -
|
|
17
|
+
"node": "22 - 26"
|
|
18
18
|
},
|
|
19
19
|
"devEngines": {
|
|
20
20
|
"runtime": {
|
|
21
21
|
"name": "node",
|
|
22
|
-
"version": "
|
|
22
|
+
"version": "22 - 26"
|
|
23
23
|
},
|
|
24
24
|
"packageManager": {
|
|
25
25
|
"name": "npm",
|
|
26
|
-
"version": "
|
|
26
|
+
"version": "12"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc",
|
|
31
|
-
"inspect": "eslint-config-inspector --config=
|
|
31
|
+
"inspect": "eslint-config-inspector --config=config.js",
|
|
32
32
|
"lint": "eslint",
|
|
33
33
|
"prepack": "npm run build",
|
|
34
34
|
"pretest": "npm run build",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"test:coverage": "npm run test -- --experimental-test-coverage"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"config.js",
|
|
40
|
+
"config.d.ts"
|
|
41
41
|
],
|
|
42
42
|
"keywords": [
|
|
43
43
|
"eslint",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@tsconfig/strictest": "^2.0.8",
|
|
59
59
|
"@types/node": "^24.13.2",
|
|
60
60
|
"eslint": "^10.6.0",
|
|
61
|
-
"eslint-config-xo": "^
|
|
61
|
+
"eslint-config-xo": "^5.0.0",
|
|
62
62
|
"eslint-config-xo-react": "^0.32.0",
|
|
63
63
|
"typescript": "^6.0.3"
|
|
64
64
|
},
|
package/readme.md
CHANGED
|
@@ -4,10 +4,10 @@ ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-confi
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- Allows you to use [`eslint-config-next` rules](https://nextjs.org/docs/app/api-reference/config/eslint#rules) with the stricter React, hooks, accessibility, and TypeScript rules of `eslint-config-xo-react` and `eslint-config-xo` (see [comparison](#comparison))
|
|
8
|
+
- Eliminates conflicts between ESLint 10, `eslint-config-next`, `eslint-config-xo-react`, and `eslint-config-xo`. No need for `@eslint/compat`.
|
|
9
9
|
- Acts as a thin compatibility layer instead of depending on Next.js or XO packages
|
|
10
|
-
- Your app
|
|
10
|
+
- Your app’s `@next/eslint-plugin-next` can be kept in sync with its `next` and other `@next/*` packages using `next upgrade` or `@next/codemod upgrade`
|
|
11
11
|
- You can update `eslint-config-xo-react` and `eslint-config-xo` without waiting for this config to update
|
|
12
12
|
- Supports Tailwind CSS
|
|
13
13
|
|
|
@@ -99,7 +99,7 @@ Below is a comparison of the plugins and enabled rule counts between `eslint-con
|
|
|
99
99
|
|
|
100
100
|
| | `eslint-config-next` plugin | `eslint-config-next` rules | `eslint-config-xo-react` plugin | `eslint-config-xo-react` rules |
|
|
101
101
|
|---|---|--:|---|--:|
|
|
102
|
-
| **Next.js** | `@next/eslint-plugin-next` | 22 |
|
|
102
|
+
| **Next.js** | `@next/eslint-plugin-next` | 22 | `@next/eslint-plugin-next` | 22 |
|
|
103
103
|
| **React** | `eslint-plugin-react` (unmaintained) | 22 | **`@eslint-react/eslint-plugin`** | **69** |
|
|
104
104
|
| **Hooks** | `react-hooks` | 16 | `react-hooks` | **17** |
|
|
105
105
|
| **Accessibility** | `jsx-a11y` (unmaintained) | 6 | **`jsx-a11y-x`** | **28** |
|
|
File without changes
|
/package/{index.js → config.js}
RENAMED
|
File without changes
|