@rsbuild/plugin-eslint 0.7.6 → 0.7.8
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/dist/index.cjs +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -30,12 +30,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
|
+
PLUGIN_ESLINT_NAME: () => PLUGIN_ESLINT_NAME,
|
|
33
34
|
pluginEslint: () => pluginEslint
|
|
34
35
|
});
|
|
35
36
|
module.exports = __toCommonJS(src_exports);
|
|
36
37
|
var import_node_path = __toESM(require("path"));
|
|
38
|
+
var PLUGIN_ESLINT_NAME = "rsbuild:eslint";
|
|
37
39
|
var pluginEslint = (options = {}) => ({
|
|
38
|
-
name:
|
|
40
|
+
name: PLUGIN_ESLINT_NAME,
|
|
39
41
|
setup(api) {
|
|
40
42
|
const { enable = true, eslintPluginOptions } = options;
|
|
41
43
|
if (!enable) {
|
|
@@ -64,5 +66,6 @@ var pluginEslint = (options = {}) => ({
|
|
|
64
66
|
});
|
|
65
67
|
// Annotate the CommonJS export names for ESM import in node:
|
|
66
68
|
0 && (module.exports = {
|
|
69
|
+
PLUGIN_ESLINT_NAME,
|
|
67
70
|
pluginEslint
|
|
68
71
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ type PluginEslintOptions = {
|
|
|
13
13
|
*/
|
|
14
14
|
eslintPluginOptions?: Options;
|
|
15
15
|
};
|
|
16
|
+
declare const PLUGIN_ESLINT_NAME = "rsbuild:eslint";
|
|
16
17
|
declare const pluginEslint: (options?: PluginEslintOptions) => RsbuildPlugin;
|
|
17
18
|
|
|
18
|
-
export { type PluginEslintOptions, pluginEslint };
|
|
19
|
+
export { PLUGIN_ESLINT_NAME, type PluginEslintOptions, pluginEslint };
|
package/dist/index.js
CHANGED
|
@@ -2,14 +2,15 @@ import { createRequire } from 'module';
|
|
|
2
2
|
var require = createRequire(import.meta['url']);
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.
|
|
5
|
+
// ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.5.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
|
|
6
6
|
import { fileURLToPath } from "url";
|
|
7
7
|
import path from "path";
|
|
8
8
|
|
|
9
9
|
// src/index.ts
|
|
10
10
|
import path2 from "path";
|
|
11
|
+
var PLUGIN_ESLINT_NAME = "rsbuild:eslint";
|
|
11
12
|
var pluginEslint = (options = {}) => ({
|
|
12
|
-
name:
|
|
13
|
+
name: PLUGIN_ESLINT_NAME,
|
|
13
14
|
setup(api) {
|
|
14
15
|
const { enable = true, eslintPluginOptions } = options;
|
|
15
16
|
if (!enable) {
|
|
@@ -37,5 +38,6 @@ var pluginEslint = (options = {}) => ({
|
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
40
|
export {
|
|
41
|
+
PLUGIN_ESLINT_NAME,
|
|
40
42
|
pluginEslint
|
|
41
43
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-eslint",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "ESLint plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"eslint-webpack-plugin": "^4.2.0",
|
|
27
|
-
"webpack": "^5.
|
|
27
|
+
"webpack": "^5.92.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"eslint": "^9.
|
|
30
|
+
"eslint": "^9.5.0",
|
|
31
31
|
"typescript": "^5.4.2",
|
|
32
|
-
"@rsbuild/core": "0.7.
|
|
33
|
-
"@scripts/test-helper": "0.7.
|
|
32
|
+
"@rsbuild/core": "0.7.8",
|
|
33
|
+
"@scripts/test-helper": "0.7.8"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"eslint": "^8.0.0 || ^9.0.0",
|
|
37
|
-
"@rsbuild/core": "^0.7.
|
|
37
|
+
"@rsbuild/core": "^0.7.8"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public",
|