@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 +7 -7
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +1 -1
- package/package.json +12 -12
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"
|
|
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/
|
|
41
|
-
- [Vue 3 + ESLint project](https://github.com/
|
|
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.
|
|
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/
|
|
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/
|
|
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
|
|
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 (
|
|
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
|
|
84
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
85
85
|
"PLUGIN_ESLINT_NAME",
|
|
86
86
|
"pluginEslint"
|
|
87
|
-
].indexOf(
|
|
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/
|
|
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.
|
|
4
|
-
"repository": "https://github.com/
|
|
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.
|
|
36
|
+
"eslint-rspack-plugin": "^4.4.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@biomejs/biome": "^1.9.4",
|
|
40
|
-
"@playwright/test": "^1.
|
|
41
|
-
"@rsbuild/core": "^1.
|
|
42
|
-
"@rslib/core": "^0.
|
|
43
|
-
"@types/node": "^24.10.
|
|
44
|
-
"eslint": "^
|
|
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.
|
|
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.
|
|
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.
|
|
59
|
+
"packageManager": "pnpm@10.28.2",
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|
|
62
62
|
"registry": "https://registry.npmjs.org/"
|