@lsby/eslint-config 0.5.2 → 0.5.3
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 +6 -1
- package/dist/esm/index.js +6 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -110,7 +110,12 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
112
|
// 在除了条件表达式的地方, 使用??而不是||
|
|
113
|
-
"@typescript-eslint/prefer-nullish-coalescing":
|
|
113
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
114
|
+
"error",
|
|
115
|
+
{
|
|
116
|
+
ignoreIfStatements: true
|
|
117
|
+
}
|
|
118
|
+
],
|
|
114
119
|
// 禁止对非布尔值使用取反
|
|
115
120
|
// 对于 number | null 的值x, if(!x)在x等于null和0时都会触发, 这可能是非预期的
|
|
116
121
|
"@lsby/no-negation": "error",
|
package/dist/esm/index.js
CHANGED
|
@@ -70,7 +70,12 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
72
|
// 在除了条件表达式的地方, 使用??而不是||
|
|
73
|
-
"@typescript-eslint/prefer-nullish-coalescing":
|
|
73
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
74
|
+
"error",
|
|
75
|
+
{
|
|
76
|
+
ignoreIfStatements: true
|
|
77
|
+
}
|
|
78
|
+
],
|
|
74
79
|
// 禁止对非布尔值使用取反
|
|
75
80
|
// 对于 number | null 的值x, if(!x)在x等于null和0时都会触发, 这可能是非预期的
|
|
76
81
|
"@lsby/no-negation": "error",
|