@lsby/eslint-config 0.2.27 → 0.2.29
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/cjs/index.cjs
CHANGED
|
@@ -42,6 +42,7 @@ __export(src_exports, {
|
|
|
42
42
|
});
|
|
43
43
|
module.exports = __toCommonJS(src_exports);
|
|
44
44
|
var import_eslint_plugin = __toESM(require("@lsby/eslint-plugin"), 1);
|
|
45
|
+
var import_eslint_plugin_es = __toESM(require("eslint-plugin-es"), 1);
|
|
45
46
|
var import_eslint_plugin_jsdoc = __toESM(require("eslint-plugin-jsdoc"), 1);
|
|
46
47
|
var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
|
|
47
48
|
var import_eslint_plugin_react_hooks = __toESM(require("eslint-plugin-react-hooks"), 1);
|
|
@@ -62,7 +63,8 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
62
63
|
},
|
|
63
64
|
plugins: {
|
|
64
65
|
"@typescript-eslint": import_typescript_eslint.default.plugin,
|
|
65
|
-
"@lsby": import_eslint_plugin.default
|
|
66
|
+
"@lsby": import_eslint_plugin.default,
|
|
67
|
+
es: import_eslint_plugin_es.default
|
|
66
68
|
},
|
|
67
69
|
rules: {
|
|
68
70
|
// 拒绝any
|
|
@@ -117,7 +119,9 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
117
119
|
allowNumber: false,
|
|
118
120
|
allowNullableObject: false
|
|
119
121
|
}
|
|
120
|
-
]
|
|
122
|
+
],
|
|
123
|
+
// 禁止使用Object.assign, 它的行为是浅拷贝, 会污染第一个参数
|
|
124
|
+
"es/no-object-assign": "error"
|
|
121
125
|
}
|
|
122
126
|
};
|
|
123
127
|
var jsDoc\u5B89\u5168\u6027 = {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import lsbyEslint from "@lsby/eslint-plugin";
|
|
3
|
+
import eslintPluginEs from "eslint-plugin-es";
|
|
3
4
|
import jsdoc from "eslint-plugin-jsdoc";
|
|
4
5
|
import reacteslint from "eslint-plugin-react";
|
|
5
6
|
import reacteslinthooks from "eslint-plugin-react-hooks";
|
|
@@ -20,7 +21,8 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
20
21
|
},
|
|
21
22
|
plugins: {
|
|
22
23
|
"@typescript-eslint": tseslint.plugin,
|
|
23
|
-
"@lsby": lsbyEslint
|
|
24
|
+
"@lsby": lsbyEslint,
|
|
25
|
+
es: eslintPluginEs
|
|
24
26
|
},
|
|
25
27
|
rules: {
|
|
26
28
|
// 拒绝any
|
|
@@ -75,7 +77,9 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
75
77
|
allowNumber: false,
|
|
76
78
|
allowNullableObject: false
|
|
77
79
|
}
|
|
78
|
-
]
|
|
80
|
+
],
|
|
81
|
+
// 禁止使用Object.assign, 它的行为是浅拷贝, 会污染第一个参数
|
|
82
|
+
"es/no-object-assign": "error"
|
|
79
83
|
}
|
|
80
84
|
};
|
|
81
85
|
var jsDoc\u5B89\u5168\u6027 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lsby/eslint-config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"require": "./dist/cjs/index.cjs",
|
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
|
25
25
|
"@types/node": "^22.6.1",
|
|
26
26
|
"bumpp": "^9.5.2",
|
|
27
|
+
"eslint-plugin-es": "^4.1.0",
|
|
27
28
|
"husky": "^9.1.6",
|
|
28
29
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
29
30
|
"prettier-plugin-packagejson": "^2.5.2",
|
|
30
31
|
"tsup": "^8.3.0"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
|
-
"@lsby/eslint-plugin": "^0.0.
|
|
34
|
+
"@lsby/eslint-plugin": "^0.0.15",
|
|
34
35
|
"@types/eslint": "^9.6.1",
|
|
35
36
|
"eslint": "^8.57.0",
|
|
36
37
|
"eslint-config-prettier": "^9.1.0",
|