@rsbuild/plugin-eslint 1.2.0 → 1.2.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.
- package/README.md +5 -5
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -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
|
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.2.
|
|
4
|
-
"repository": "https://github.com/
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"repository": "https://github.com/rstackjs/rsbuild-plugin-eslint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@rsbuild/core": "1.
|
|
51
|
+
"@rsbuild/core": "^1.0.0 || ^2.0.0-0",
|
|
52
52
|
"eslint": "^8.0.0 || ^9.0.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|