eslint-config-xo-next 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/package.json +10 -7
  2. package/readme.md +11 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-xo-next",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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",
@@ -28,8 +28,7 @@
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsc",
31
- "inspect": "eslint-config-inspector --config=config.js",
32
- "lint": "eslint",
31
+ "lint": "eslint && knip",
33
32
  "prepack": "npm run build",
34
33
  "pretest": "npm run build",
35
34
  "test": "node --test",
@@ -52,22 +51,26 @@
52
51
  "tailwind-csstree": "^0.4.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@eslint/config-inspector": "^3.0.4",
56
54
  "@next/eslint-plugin-next": "^16.2.10",
57
55
  "@tsconfig/node22": "^22.0.5",
58
56
  "@tsconfig/strictest": "^2.0.8",
59
57
  "@types/node": "^24.13.2",
60
58
  "eslint": "^10.6.0",
61
- "eslint-config-xo": "^5.0.0",
62
- "eslint-config-xo-react": "^0.32.0",
59
+ "eslint-config-xo": "^8.0.0",
60
+ "eslint-config-xo-react": "^0.34.0",
61
+ "knip": "^6.43.0",
63
62
  "typescript": "^6.0.3"
64
63
  },
65
64
  "peerDependencies": {
66
65
  "@next/eslint-plugin-next": "^16.0.0",
67
66
  "eslint": "^10.0.0",
68
- "eslint-config-xo-react": "^0.32.0"
67
+ "eslint-config-xo": ">=0.53.0",
68
+ "eslint-config-xo-react": ">=0.32.0"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
+ "eslint-config-xo": {
72
+ "optional": true
73
+ },
71
74
  "eslint-config-xo-react": {
72
75
  "optional": true
73
76
  }
package/readme.md CHANGED
@@ -1,19 +1,17 @@
1
1
  # eslint-config-xo-next
2
2
 
3
- ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for [Next.js](https://nextjs.org) to be used with [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react)
3
+ ESLint [shareable config](https://eslint.org/docs/developer-guide/shareable-configs.html) for [Next.js](https://nextjs.org) to be used with [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react)
4
4
 
5
5
  ## Features
6
6
 
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
- - Acts as a thin compatibility layer instead of depending on Next.js or XO packages
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
- - You can update `eslint-config-xo-react` and `eslint-config-xo` without waiting for this config to update
7
+ - Allows you to use eslint-config-xo-react with eslint-config-next without ESLint config or plugin conflicts
8
+ - Works as a thin compatibility layer instead of depending on Next.js or XO packages
12
9
  - Supports Tailwind CSS
13
10
 
14
11
  ## Install
15
12
 
16
13
  ```sh
14
+ npm uninstall eslint-config-next
17
15
  npm install --save-dev \
18
16
  @next/eslint-plugin-next \
19
17
  eslint-config-xo \
@@ -41,6 +39,7 @@ export default defineConfig([
41
39
  <summary>Use with <a href=https://github.com/xojs/xo>XO</a></summary>
42
40
 
43
41
  ```sh
42
+ npm uninstall eslint-config-next
44
43
  npm install --save-dev \
45
44
  @next/eslint-plugin-next \
46
45
  eslint-config-xo-react \
@@ -95,7 +94,7 @@ eslintXoNext({rootDir: 'packages/my-app/'})
95
94
 
96
95
  ## Comparison
97
96
 
98
- Below is a comparison of the plugins and enabled rule counts between `eslint-config-next` and `eslint-config-xo-react` (with `eslint-config-xo`)
97
+ Below is a comparison of the plugins and enabled rule counts between `eslint-config-next` and `eslint-config-xo-react`
99
98
 
100
99
  | | `eslint-config-next` plugin | `eslint-config-next` rules | `eslint-config-xo-react` plugin | `eslint-config-xo-react` rules |
101
100
  |---|---|--:|---|--:|
@@ -103,14 +102,14 @@ Below is a comparison of the plugins and enabled rule counts between `eslint-con
103
102
  | **React** | `eslint-plugin-react` (unmaintained) | 22 | **`@eslint-react/eslint-plugin`** | **69** |
104
103
  | **Hooks** | `react-hooks` | 16 | `react-hooks` | **17** |
105
104
  | **Accessibility** | `jsx-a11y` (unmaintained) | 6 | **`jsx-a11y-x`** | **28** |
106
- | **TypeScript** | `@typescript-eslint` | 20 | `@typescript-eslint` | **94** |
105
+ | **TypeScript** | `@typescript-eslint` | 20 | `@typescript-eslint` | **101** |
107
106
  | **Import** | `eslint-plugin-import` (unmaintained) | 1 | **`eslint-plugin-import-x`** | **23** |
108
- | **Totals** | | 87 | | **253** |
107
+ | **Totals** | | 87 | | **260** |
109
108
 
110
109
  <details>
111
110
  <summary>Comparison package versions</summary>
112
111
 
113
- - `eslint-config-next`: 16.3.6
114
- - `eslint-config-xo-react`: 0.32.0
115
- - `eslint-config-xo`: 4.0.1
112
+ - eslint-config-next: 16.4.3
113
+ - eslint-config-xo-react: 0.34.0
114
+ - eslint-config-xo: 8.0.0
116
115
  </details>