@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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # @lsby/eslint-config
2
2
 
3
+ 个人的 ESLint 配置包。
4
+
3
5
  ## 使用
4
6
 
5
7
  ```
@@ -7,5 +9,4 @@
7
9
  import * as lsby from '@lsby/eslint-config'
8
10
 
9
11
  export default lsby.推荐配置
10
- // export default lsby.前端推荐配置
11
12
  ```
@@ -156,7 +156,7 @@ var ts\u5B89\u5168\u6027 = {
156
156
  // 这几条规则包括:
157
157
  // - switch的case必须穷尽
158
158
  // - 不允许switch的default分支
159
- // - 对字面量枚举的if-else判断应该用switch穷尽
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判断应该用switch穷尽
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
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@lsby/eslint-config",
3
- "version": "0.3.15",
3
+ "version": "0.3.17",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/lsby/lsby-eslint-config.git"
7
+ },
4
8
  "type": "module",
5
9
  "exports": {
6
10
  "require": "./dist/cjs/index.cjs",