@lsby/eslint-config 0.2.10 → 0.2.12
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 +5 -2
- package/dist/esm/index.js +5 -2
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
@@ -90,8 +90,11 @@ var ts\u5B89\u5168\u6027 = {
|
|
90
90
|
"@lsby/prefer-let": "error",
|
91
91
|
// 永远使用 === 而不是 ==, 在一些情况下能自动修复
|
92
92
|
eqeqeq: ["error", "always"],
|
93
|
-
// 在除了逻辑表达式的地方,
|
94
|
-
"@typescript-eslint/prefer-nullish-coalescing": "error"
|
93
|
+
// 在除了逻辑表达式的地方, 使用??而不是||
|
94
|
+
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
95
|
+
// 禁止使用取反
|
96
|
+
// 对于 number | null 的值x, if(!x)在x等于null和0时都会触发, 这可能是非预期的
|
97
|
+
"@lsby/no-negation": "error"
|
95
98
|
}
|
96
99
|
};
|
97
100
|
var jsDoc\u5B89\u5168\u6027 = {
|
package/dist/esm/index.js
CHANGED
@@ -48,8 +48,11 @@ var ts\u5B89\u5168\u6027 = {
|
|
48
48
|
"@lsby/prefer-let": "error",
|
49
49
|
// 永远使用 === 而不是 ==, 在一些情况下能自动修复
|
50
50
|
eqeqeq: ["error", "always"],
|
51
|
-
// 在除了逻辑表达式的地方,
|
52
|
-
"@typescript-eslint/prefer-nullish-coalescing": "error"
|
51
|
+
// 在除了逻辑表达式的地方, 使用??而不是||
|
52
|
+
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
53
|
+
// 禁止使用取反
|
54
|
+
// 对于 number | null 的值x, if(!x)在x等于null和0时都会触发, 这可能是非预期的
|
55
|
+
"@lsby/no-negation": "error"
|
53
56
|
}
|
54
57
|
};
|
55
58
|
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.12",
|
4
4
|
"type": "module",
|
5
5
|
"exports": {
|
6
6
|
"require": "./dist/cjs/index.cjs",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"tsup": "^8.3.0"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
|
-
"@lsby/eslint-plugin": "^0.0.
|
33
|
+
"@lsby/eslint-plugin": "^0.0.6",
|
34
34
|
"@types/eslint": "^9.6.1",
|
35
35
|
"eslint": "^8.57.0",
|
36
36
|
"eslint-config-prettier": "^9.1.0",
|