@yamato-daiwa/style_guides 0.3.0-alpha.8 → 0.3.0-alpha.9

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/ECMAScript.js CHANGED
@@ -1,6 +1,7 @@
1
1
  /* ─── Plugins ────────────────────────────────────────────────────────────────────────────────────────────────────── */
2
2
  const stylisticPlugin = require("@stylistic/eslint-plugin");
3
3
  const nodePlugin = require("eslint-plugin-n");
4
+ const commentsPlugin = require("@eslint-community/eslint-plugin-eslint-comments");
4
5
  const importPlugin = require("eslint-plugin-import");
5
6
  const vuePlugin = require("eslint-plugin-vue");
6
7
  const reactPlugin = require("eslint-plugin-react");
@@ -9,6 +10,7 @@ const typeScriptPlugin = require("@typescript-eslint/eslint-plugin");
9
10
  /* ─── Rules ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
10
11
  const ecmaScriptBasicRules = require("./Rules/ECMA_ScriptBasicRules");
11
12
  const nodeJS_Rules = require("./Rules/NodeJS_Rules");
13
+ const commentsRules = require("./Rules/CommentsRules");
12
14
  const typeScriptRules = require("./Rules/TypeScriptRules");
13
15
  const reactRules = require("./Rules/ReactRules");
14
16
  const vueRules = require("./Rules/VueRules");
@@ -40,12 +42,14 @@ module.exports = [
40
42
  plugins: {
41
43
  "@stylistic": stylisticPlugin,
42
44
  n: nodePlugin,
45
+ "@eslint-community/eslint-comments": commentsPlugin,
43
46
  import: importPlugin
44
47
  },
45
48
 
46
49
  rules: {
47
50
  ...ecmaScriptBasicRules,
48
- ...nodeJS_Rules
51
+ ...nodeJS_Rules,
52
+ ...commentsRules
49
53
  }
50
54
 
51
55
  },
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ "@eslint-community/eslint-comments/disable-enable-pair": "error",
3
+ "@eslint-community/eslint-comments/no-aggregating-enable": "error",
4
+ "@eslint-community/eslint-comments/no-duplicate-disable": "error",
5
+ "@eslint-community/eslint-comments/no-unlimited-disable": "error",
6
+ "@eslint-community/eslint-comments/no-unused-disable": "error",
7
+ "@eslint-community/eslint-comments/no-unused-enable": "error",
8
+ "@eslint-community/eslint-comments/no-restricted-disable": [
9
+ "error",
10
+ "@typescript-eslint/typedef"
11
+ ],
12
+ "@eslint-community/eslint-comments/require-description": "error"
13
+ };
@@ -203,7 +203,6 @@ module.exports = {
203
203
  "public-static-field",
204
204
  "protected-static-field",
205
205
  "private-static-field",
206
- "static-initialization",
207
206
 
208
207
  "public-abstract-field",
209
208
  "protected-abstract-field",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/style_guides",
3
- "version": "0.3.0-alpha.8",
3
+ "version": "0.3.0-alpha.9",
4
4
  "description": "The guidelines for ESLint, Pug and Stylus.",
5
5
  "engines": {
6
6
  "node": ">=18.18.0"
@@ -19,28 +19,30 @@
19
19
  ],
20
20
  "license": "MIT",
21
21
  "peerDependencies": {
22
- "@stylistic/eslint-plugin": "~2.8.0",
23
- "@typescript-eslint/eslint-plugin": "~8.8.0",
24
- "@typescript-eslint/parser": "~8.8.0",
25
- "eslint": "~9.12.0",
22
+ "@eslint-community/eslint-plugin-eslint-comments": "~4.4.0",
23
+ "@stylistic/eslint-plugin": "~2.9.0",
24
+ "@typescript-eslint/eslint-plugin": "~8.10.0",
25
+ "@typescript-eslint/parser": "~8.10.0",
26
+ "eslint": "~9.13.0",
26
27
  "eslint-plugin-import": "2.31.0",
27
- "eslint-plugin-n": "~17.10.0",
28
+ "eslint-plugin-n": "~17.11.0",
28
29
  "eslint-plugin-react": "~7.37.0",
29
- "eslint-plugin-vue": "~9.28.0",
30
+ "eslint-plugin-vue": "~9.29.0",
30
31
  "eslint-plugin-vue-pug": "~0.6.2",
31
- "typescript": "~5.5.0"
32
+ "typescript": "~5.6.0"
32
33
  },
33
34
  "devDependencies": {
34
- "@stylistic/eslint-plugin": "2.8.0",
35
- "@typescript-eslint/eslint-plugin": "8.8.0",
36
- "@typescript-eslint/parser": "8.8.0",
37
- "eslint": "9.12.0",
35
+ "@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
36
+ "@stylistic/eslint-plugin": "2.9.0",
37
+ "@typescript-eslint/eslint-plugin": "8.10.0",
38
+ "@typescript-eslint/parser": "8.10.0",
39
+ "eslint": "9.13.0",
38
40
  "eslint-plugin-import": "2.31.0",
39
- "eslint-plugin-n": "17.10.3",
41
+ "eslint-plugin-n": "17.11.1",
40
42
  "eslint-plugin-react": "7.37.1",
41
- "eslint-plugin-vue": "9.28.0",
43
+ "eslint-plugin-vue": "9.29.0",
42
44
  "eslint-plugin-vue-pug": "0.6.2",
43
- "typescript": "5.5.4",
45
+ "typescript": "5.6.3",
44
46
  "vue-facing-decorator": "3.0.4"
45
47
  },
46
48
  "files": [