@yamato-daiwa/style_guides 0.4.0 → 0.6.0

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.
@@ -156,6 +156,7 @@ module.exports = {
156
156
  "all",
157
157
  {
158
158
  nestedBinaryExpressions: false,
159
+ nestedConditionalExpressions: false,
159
160
  enforceForArrowConditionals: false
160
161
  }
161
162
  ],
@@ -84,7 +84,7 @@ module.exports = {
84
84
  "@typescript-eslint/unbound-method": [ "error", { ignoreStatic: true } ],
85
85
 
86
86
 
87
- /* ━━━ Type Safety ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
87
+ /* ━━━ Prevention of the Confusing & Stupid Mistakes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
88
88
  "@typescript-eslint/await-thenable": "error",
89
89
 
90
90
  "class-methods-use-this": "off",
@@ -132,6 +132,8 @@ module.exports = {
132
132
  }
133
133
  ],
134
134
 
135
+ "@typescript-eslint/no-misused-spread": "error",
136
+
135
137
  "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
136
138
 
137
139
  "@typescript-eslint/no-redundant-type-constituents": "error",
@@ -173,7 +175,10 @@ module.exports = {
173
175
  }
174
176
  ],
175
177
 
176
- "@typescript-eslint/switch-exhaustiveness-check": "error",
178
+ "@typescript-eslint/switch-exhaustiveness-check": [
179
+ "error",
180
+ { allowDefaultCaseForExhaustiveSwitch: true }
181
+ ],
177
182
 
178
183
 
179
184
  /* ━━━ Elimination of Useless Code ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/style_guides",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "The guidelines for ESLint and Pug.",
5
5
  "engines": {
6
6
  "node": ">=18.18.0"
@@ -20,10 +20,10 @@
20
20
  "license": "MIT",
21
21
  "peerDependencies": {
22
22
  "@eslint-community/eslint-plugin-eslint-comments": "~4.4.0",
23
- "@stylistic/eslint-plugin": "~2.12.0",
24
- "@typescript-eslint/eslint-plugin": "~8.18.0",
25
- "@typescript-eslint/parser": "~8.18.0",
26
- "eslint": "~9.17.0",
23
+ "@stylistic/eslint-plugin": "~3.0.0",
24
+ "@typescript-eslint/eslint-plugin": "~8.23.0",
25
+ "@typescript-eslint/parser": "~8.23.0",
26
+ "eslint": "~9.20.0",
27
27
  "eslint-plugin-import": "2.31.0",
28
28
  "eslint-plugin-n": "~17.15.0",
29
29
  "eslint-plugin-react": "~7.37.0",
@@ -33,16 +33,16 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
36
- "@stylistic/eslint-plugin": "2.12.1",
37
- "@typescript-eslint/eslint-plugin": "8.18.2",
38
- "@typescript-eslint/parser": "8.18.2",
39
- "eslint": "9.17.0",
36
+ "@stylistic/eslint-plugin": "3.0.1",
37
+ "@typescript-eslint/eslint-plugin": "8.23.0",
38
+ "@typescript-eslint/parser": "8.23.0",
39
+ "eslint": "9.20.0",
40
40
  "eslint-plugin-import": "2.31.0",
41
41
  "eslint-plugin-n": "17.15.1",
42
- "eslint-plugin-react": "7.37.3",
42
+ "eslint-plugin-react": "7.37.4",
43
43
  "eslint-plugin-vue": "9.32.0",
44
44
  "eslint-plugin-vue-pug": "0.6.2",
45
- "typescript": "5.7.2",
45
+ "typescript": "5.7.3",
46
46
  "vue-facing-decorator": "3.0.4"
47
47
  },
48
48
  "files": [