@rsbuild/plugin-eslint 2.0.0 → 2.0.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/README.md +7 -5
  2. package/package.json +18 -20
package/README.md CHANGED
@@ -18,17 +18,19 @@ The plugin has integrated [eslint-rspack-plugin](https://www.npmjs.com/package/e
18
18
 
19
19
  ## Usage
20
20
 
21
- Requirements:
22
-
23
- - Node.js >= 20.19.0
24
- - ESLint >= 9
25
-
26
21
  Install:
27
22
 
28
23
  ```bash
29
24
  npm add @rsbuild/plugin-eslint -D
30
25
  ```
31
26
 
27
+ The latest version of this plugin only supports ESLint >= 9.0 and Node.js 20+.
28
+ If you need to use ESLint v8 or Node.js 18, install the `1.x` version instead:
29
+
30
+ ```bash
31
+ npm add @rsbuild/plugin-eslint@1 -D
32
+ ```
33
+
32
34
  Add plugin to your `rsbuild.config.ts`:
33
35
 
34
36
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-eslint",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "repository": "https://github.com/rstackjs/rsbuild-plugin-eslint",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,16 +15,7 @@
15
15
  "dist"
16
16
  ],
17
17
  "engines": {
18
- "node": ">=20.19.0"
19
- },
20
- "scripts": {
21
- "build": "rslib",
22
- "dev": "rslib -w",
23
- "lint": "rslint && prettier -c .",
24
- "lint:write": "rslint --fix && prettier -w .",
25
- "prepare": "simple-git-hooks && pnpm run build",
26
- "test": "playwright test",
27
- "bump": "pnpx bumpp"
18
+ "node": ">=20.20.2"
28
19
  },
29
20
  "simple-git-hooks": {
30
21
  "pre-commit": "pnpm run lint:write"
@@ -33,13 +24,13 @@
33
24
  "eslint-rspack-plugin": "5.0.0"
34
25
  },
35
26
  "devDependencies": {
36
- "@playwright/test": "^1.59.1",
37
- "@rsbuild/core": "^2.0.5",
38
- "@rslib/core": "^0.21.4",
39
- "@rslint/core": "^0.5.2",
40
- "@types/node": "^24.12.3",
41
- "eslint": "^10.3.0",
42
- "playwright": "^1.59.1",
27
+ "@playwright/test": "^1.60.0",
28
+ "@rsbuild/core": "^2.0.7",
29
+ "@rslib/core": "^0.21.5",
30
+ "@rslint/core": "^0.5.3",
31
+ "@types/node": "^24.12.4",
32
+ "eslint": "^10.4.0",
33
+ "playwright": "^1.60.0",
43
34
  "prettier": "^3.8.3",
44
35
  "simple-git-hooks": "^2.13.1",
45
36
  "typescript": "6.0.3"
@@ -53,9 +44,16 @@
53
44
  "optional": true
54
45
  }
55
46
  },
56
- "packageManager": "pnpm@10.33.4",
57
47
  "publishConfig": {
58
48
  "access": "public",
59
49
  "registry": "https://registry.npmjs.org/"
50
+ },
51
+ "scripts": {
52
+ "build": "rslib",
53
+ "dev": "rslib -w",
54
+ "lint": "rslint && prettier -c .",
55
+ "lint:write": "rslint --fix && prettier -w .",
56
+ "test": "playwright test",
57
+ "bump": "pnpx bumpp"
60
58
  }
61
- }
59
+ }