@rsbuild/plugin-eslint 1.2.0 → 1.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/README.md CHANGED
@@ -14,7 +14,7 @@ The plugin has integrated [eslint-rspack-plugin](https://www.npmjs.com/package/e
14
14
  <a href="https://npmcharts.com/compare/@rsbuild/plugin-eslint?minimal=true"><img src="https://img.shields.io/npm/dm/@rsbuild/plugin-eslint.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
15
15
  </p>
16
16
 
17
- <img width="1496" alt="Screenshot 2025-02-16 at 18 56 32" src="https://github.com/user-attachments/assets/ee4b1915-92ce-4032-834d-b2321f02f1d2" />
17
+ <img width="1496" src="https://github.com/user-attachments/assets/ee4b1915-92ce-4032-834d-b2321f02f1d2" />
18
18
 
19
19
  ## Usage
20
20
 
@@ -37,8 +37,8 @@ export default {
37
37
 
38
38
  ## Example Projects
39
39
 
40
- - [React + ESLint project](https://github.com/rspack-contrib/rspack-examples/tree/main/rsbuild/react-eslint)
41
- - [Vue 3 + ESLint project](https://github.com/rspack-contrib/rspack-examples/tree/main/rsbuild/vue3-eslint)
40
+ - [React + ESLint project](https://github.com/rstackjs/rspack-examples/tree/main/rsbuild/react-eslint)
41
+ - [Vue 3 + ESLint project](https://github.com/rstackjs/rspack-examples/tree/main/rsbuild/vue3-eslint)
42
42
 
43
43
  ## Options
44
44
 
@@ -76,7 +76,7 @@ pluginEslint({
76
76
 
77
77
  ### environments
78
78
 
79
- Control which environments to run ESLint on when using [Rsbuild's multi-environment builds](https://rsbuild.dev/guide/advanced/environments).
79
+ Control which environments to run ESLint on when using [Rsbuild's multi-environment builds](https://rsbuild.rs/guide/advanced/environments).
80
80
 
81
81
  - **Type:** `'all' | boolean | string[]`
82
82
  - **Default:** `false`
@@ -112,9 +112,9 @@ This is useful when different environments have different entry points and you w
112
112
 
113
113
  ### eslintPluginOptions
114
114
 
115
- To modify the options of `eslint-rspack-plugin`, please refer to [eslint-rspack-plugin - README](https://github.com/rspack-contrib/eslint-rspack-plugin#readme) to learn about available options.
115
+ To modify the options of `eslint-rspack-plugin`, please refer to [eslint-rspack-plugin - README](https://github.com/rstackjs/eslint-rspack-plugin#readme) to learn about available options.
116
116
 
117
- - **Type:** [Options](https://github.com/rspack-contrib/eslint-rspack-plugin/blob/master/types/options.d.ts)
117
+ - **Type:** [Options](https://github.com/rstackjs/eslint-rspack-plugin/blob/master/types/options.d.ts)
118
118
  - **Default:**
119
119
 
120
120
  ```ts
@@ -129,7 +129,7 @@ const defaultOptions = {
129
129
 
130
130
  The `eslintPluginOptions` object will be shallowly merged with the default configuration object.
131
131
 
132
- - For example, enable ESLint v9's flat config:
132
+ - For example, enable ESLint's flat config:
133
133
 
134
134
  ```ts
135
135
  pluginEslint({
package/dist/index.cjs CHANGED
@@ -22,7 +22,7 @@ var __webpack_require__ = {};
22
22
  })();
23
23
  (()=>{
24
24
  __webpack_require__.r = (exports1)=>{
25
- if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
25
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
26
26
  value: 'Module'
27
27
  });
28
28
  Object.defineProperty(exports1, '__esModule', {
@@ -81,10 +81,10 @@ const pluginEslint = (options = {})=>({
81
81
  });
82
82
  exports.PLUGIN_ESLINT_NAME = __webpack_exports__.PLUGIN_ESLINT_NAME;
83
83
  exports.pluginEslint = __webpack_exports__.pluginEslint;
84
- for(var __webpack_i__ in __webpack_exports__)if (-1 === [
84
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
85
85
  "PLUGIN_ESLINT_NAME",
86
86
  "pluginEslint"
87
- ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
87
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
88
88
  Object.defineProperty(exports, '__esModule', {
89
89
  value: true
90
90
  });
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export type PluginEslintOptions = {
8
8
  enable?: boolean;
9
9
  /**
10
10
  * To modify the options of `eslint-rspack-plugin`.
11
- * @see https://github.com/rspack-contrib/eslint-rspack-plugin
11
+ * @see https://github.com/rstackjs/eslint-rspack-plugin
12
12
  */
13
13
  eslintPluginOptions?: Options;
14
14
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-eslint",
3
- "version": "1.2.0",
4
- "repository": "https://github.com/rspack-contrib/rsbuild-plugin-eslint",
3
+ "version": "1.3.0",
4
+ "repository": "https://github.com/rstackjs/rsbuild-plugin-eslint",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
@@ -33,30 +33,30 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "eslint-rspack-plugin": "^4.3.0"
36
+ "eslint-rspack-plugin": "^4.4.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@biomejs/biome": "^1.9.4",
40
- "@playwright/test": "^1.57.0",
41
- "@rsbuild/core": "^1.6.10",
42
- "@rslib/core": "^0.18.2",
43
- "@types/node": "^24.10.1",
44
- "eslint": "^9.39.1",
40
+ "@playwright/test": "^1.58.1",
41
+ "@rsbuild/core": "^1.7.2",
42
+ "@rslib/core": "^0.19.4",
43
+ "@types/node": "^24.10.9",
44
+ "eslint": "^10.0.2",
45
45
  "nano-staged": "^0.9.0",
46
- "playwright": "^1.57.0",
46
+ "playwright": "^1.58.1",
47
47
  "simple-git-hooks": "^2.13.1",
48
48
  "typescript": "^5.9.3"
49
49
  },
50
50
  "peerDependencies": {
51
- "@rsbuild/core": "1.x",
52
- "eslint": "^8.0.0 || ^9.0.0"
51
+ "@rsbuild/core": "^1.0.0 || ^2.0.0-0",
52
+ "eslint": "^8.0.0 || ^9.0.0 || ^10.0.0"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@rsbuild/core": {
56
56
  "optional": true
57
57
  }
58
58
  },
59
- "packageManager": "pnpm@10.24.0",
59
+ "packageManager": "pnpm@10.28.2",
60
60
  "publishConfig": {
61
61
  "access": "public",
62
62
  "registry": "https://registry.npmjs.org/"