@rsbuild/plugin-eslint 1.1.1 → 1.1.2
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 +17 -17
- package/dist/index.js +2 -2
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
3
|
"eslint-rspack-plugin": function(module) {
|
|
4
|
-
module.exports = import("eslint-rspack-plugin")
|
|
4
|
+
module.exports = import("eslint-rspack-plugin").then(function(module) {
|
|
5
|
+
return module;
|
|
6
|
+
});
|
|
5
7
|
}
|
|
6
8
|
};
|
|
7
9
|
var __webpack_module_cache__ = {};
|
|
@@ -15,12 +17,8 @@ function __webpack_require__(moduleId) {
|
|
|
15
17
|
return module.exports;
|
|
16
18
|
}
|
|
17
19
|
(()=>{
|
|
18
|
-
__webpack_require__.n =
|
|
19
|
-
var getter = module && module.__esModule ?
|
|
20
|
-
return module['default'];
|
|
21
|
-
} : function() {
|
|
22
|
-
return module;
|
|
23
|
-
};
|
|
20
|
+
__webpack_require__.n = (module)=>{
|
|
21
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
24
22
|
__webpack_require__.d(getter, {
|
|
25
23
|
a: getter
|
|
26
24
|
});
|
|
@@ -28,7 +26,7 @@ function __webpack_require__(moduleId) {
|
|
|
28
26
|
};
|
|
29
27
|
})();
|
|
30
28
|
(()=>{
|
|
31
|
-
__webpack_require__.d =
|
|
29
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
32
30
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
33
31
|
enumerable: true,
|
|
34
32
|
get: definition[key]
|
|
@@ -36,12 +34,10 @@ function __webpack_require__(moduleId) {
|
|
|
36
34
|
};
|
|
37
35
|
})();
|
|
38
36
|
(()=>{
|
|
39
|
-
__webpack_require__.o =
|
|
40
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
41
|
-
};
|
|
37
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
42
38
|
})();
|
|
43
39
|
(()=>{
|
|
44
|
-
__webpack_require__.r =
|
|
40
|
+
__webpack_require__.r = (exports1)=>{
|
|
45
41
|
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
46
42
|
value: 'Module'
|
|
47
43
|
});
|
|
@@ -54,8 +50,8 @@ var __webpack_exports__ = {};
|
|
|
54
50
|
(()=>{
|
|
55
51
|
__webpack_require__.r(__webpack_exports__);
|
|
56
52
|
__webpack_require__.d(__webpack_exports__, {
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
pluginEslint: ()=>pluginEslint,
|
|
54
|
+
PLUGIN_ESLINT_NAME: ()=>PLUGIN_ESLINT_NAME
|
|
59
55
|
});
|
|
60
56
|
const external_node_path_namespaceObject = require("node:path");
|
|
61
57
|
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
@@ -96,8 +92,12 @@ var __webpack_exports__ = {};
|
|
|
96
92
|
}
|
|
97
93
|
});
|
|
98
94
|
})();
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
exports.PLUGIN_ESLINT_NAME = __webpack_exports__.PLUGIN_ESLINT_NAME;
|
|
96
|
+
exports.pluginEslint = __webpack_exports__.pluginEslint;
|
|
97
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
98
|
+
"PLUGIN_ESLINT_NAME",
|
|
99
|
+
"pluginEslint"
|
|
100
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
101
|
+
Object.defineProperty(exports, '__esModule', {
|
|
102
102
|
value: true
|
|
103
103
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import node_path from "node:path";
|
|
2
2
|
const PLUGIN_ESLINT_NAME = 'rsbuild:eslint';
|
|
3
3
|
const pluginEslint = (options = {})=>({
|
|
4
4
|
name: PLUGIN_ESLINT_NAME,
|
|
@@ -23,7 +23,7 @@ const pluginEslint = (options = {})=>({
|
|
|
23
23
|
],
|
|
24
24
|
exclude: [
|
|
25
25
|
'node_modules',
|
|
26
|
-
|
|
26
|
+
node_path.relative(api.context.rootPath, distPath)
|
|
27
27
|
]
|
|
28
28
|
};
|
|
29
29
|
chain.plugin('eslint').use(ESLintPlugin, [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-eslint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"repository": "https://github.com/rspack-contrib/rsbuild-plugin-eslint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,15 +37,15 @@
|
|
|
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": "^22.
|
|
44
|
-
"eslint": "^9.
|
|
40
|
+
"@playwright/test": "^1.54.1",
|
|
41
|
+
"@rsbuild/core": "^1.4.12",
|
|
42
|
+
"@rslib/core": "^0.11.0",
|
|
43
|
+
"@types/node": "^22.17.0",
|
|
44
|
+
"eslint": "^9.32.0",
|
|
45
45
|
"nano-staged": "^0.8.0",
|
|
46
|
-
"playwright": "^1.
|
|
47
|
-
"simple-git-hooks": "^2.
|
|
48
|
-
"typescript": "^5.
|
|
46
|
+
"playwright": "^1.54.1",
|
|
47
|
+
"simple-git-hooks": "^2.13.1",
|
|
48
|
+
"typescript": "^5.9.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@rsbuild/core": "1.x",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"optional": true
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"packageManager": "pnpm@
|
|
59
|
+
"packageManager": "pnpm@10.14.0",
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|
|
62
62
|
"registry": "https://registry.npmjs.org/"
|