@lsby/eslint-config 0.3.15 → 0.3.17
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/README.md +2 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
package/dist/cjs/index.cjs
CHANGED
|
@@ -156,7 +156,7 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
156
156
|
// 这几条规则包括:
|
|
157
157
|
// - switch的case必须穷尽
|
|
158
158
|
// - 不允许switch的default分支
|
|
159
|
-
// - 对字面量枚举的if-else
|
|
159
|
+
// - 对字面量枚举的if-else等性判断应该改用switch穷尽
|
|
160
160
|
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
161
161
|
"@lsby/no-switch-default": "error",
|
|
162
162
|
"@lsby/prefer-switch-for-literal-enum": "error"
|
package/dist/esm/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var ts\u5B89\u5168\u6027 = {
|
|
|
116
116
|
// 这几条规则包括:
|
|
117
117
|
// - switch的case必须穷尽
|
|
118
118
|
// - 不允许switch的default分支
|
|
119
|
-
// - 对字面量枚举的if-else
|
|
119
|
+
// - 对字面量枚举的if-else等性判断应该改用switch穷尽
|
|
120
120
|
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
121
121
|
"@lsby/no-switch-default": "error",
|
|
122
122
|
"@lsby/prefer-switch-for-literal-enum": "error"
|
package/package.json
CHANGED