@rsbuild/plugin-eslint 1.2.1 → 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 +2 -2
- package/dist/index.cjs +3 -3
- package/package.json +10 -10
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
|
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-eslint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"repository": "https://github.com/rstackjs/rsbuild-plugin-eslint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -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
51
|
"@rsbuild/core": "^1.0.0 || ^2.0.0-0",
|
|
52
|
-
"eslint": "^8.0.0 || ^9.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/"
|