@lsby/eslint-config 0.2.28 → 0.2.30

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.
@@ -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 = {
@@ -1,4 +1,5 @@
1
1
  declare module 'eslint-plugin-sort-class-members' {}
2
2
  declare module 'eslint-plugin-react' {}
3
3
  declare module 'eslint-plugin-react-hooks' {}
4
- declare module '@lsby/eslint-plugin' {}
4
+ declare module '@lsby/eslint-plugin' {}
5
+ declare module 'eslint-plugin-es' {}
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 = {
@@ -1,4 +1,5 @@
1
1
  declare module 'eslint-plugin-sort-class-members' {}
2
2
  declare module 'eslint-plugin-react' {}
3
3
  declare module 'eslint-plugin-react-hooks' {}
4
- declare module '@lsby/eslint-plugin' {}
4
+ declare module '@lsby/eslint-plugin' {}
5
+ declare module 'eslint-plugin-es' {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lsby/eslint-config",
3
- "version": "0.2.28",
3
+ "version": "0.2.30",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "require": "./dist/cjs/index.cjs",
@@ -34,6 +34,7 @@
34
34
  "@types/eslint": "^9.6.1",
35
35
  "eslint": "^8.57.0",
36
36
  "eslint-config-prettier": "^9.1.0",
37
+ "eslint-plugin-es": "^4.1.0",
37
38
  "eslint-plugin-jsdoc": "^50.2.4",
38
39
  "eslint-plugin-react": "^7.36.1",
39
40
  "eslint-plugin-react-hooks": "^4.6.2",