@yamato-daiwa/style_guides 0.3.0-alpha.7 → 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 +8 -2
- package/Rules/CommentsRules.js +13 -0
- package/Rules/TypeScriptRules.js +0 -3
- package/package.json +20 -16
package/ECMAScript.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
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");
|
|
5
|
+
const importPlugin = require("eslint-plugin-import");
|
|
4
6
|
const vuePlugin = require("eslint-plugin-vue");
|
|
5
7
|
const reactPlugin = require("eslint-plugin-react");
|
|
6
8
|
const typeScriptPlugin = require("@typescript-eslint/eslint-plugin");
|
|
@@ -8,6 +10,7 @@ const typeScriptPlugin = require("@typescript-eslint/eslint-plugin");
|
|
|
8
10
|
/* ─── Rules ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
9
11
|
const ecmaScriptBasicRules = require("./Rules/ECMA_ScriptBasicRules");
|
|
10
12
|
const nodeJS_Rules = require("./Rules/NodeJS_Rules");
|
|
13
|
+
const commentsRules = require("./Rules/CommentsRules");
|
|
11
14
|
const typeScriptRules = require("./Rules/TypeScriptRules");
|
|
12
15
|
const reactRules = require("./Rules/ReactRules");
|
|
13
16
|
const vueRules = require("./Rules/VueRules");
|
|
@@ -38,12 +41,15 @@ module.exports = [
|
|
|
38
41
|
|
|
39
42
|
plugins: {
|
|
40
43
|
"@stylistic": stylisticPlugin,
|
|
41
|
-
n: nodePlugin
|
|
44
|
+
n: nodePlugin,
|
|
45
|
+
"@eslint-community/eslint-comments": commentsPlugin,
|
|
46
|
+
import: importPlugin
|
|
42
47
|
},
|
|
43
48
|
|
|
44
49
|
rules: {
|
|
45
50
|
...ecmaScriptBasicRules,
|
|
46
|
-
...nodeJS_Rules
|
|
51
|
+
...nodeJS_Rules,
|
|
52
|
+
...commentsRules
|
|
47
53
|
}
|
|
48
54
|
|
|
49
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
|
+
};
|
package/Rules/TypeScriptRules.js
CHANGED
|
@@ -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",
|
|
@@ -229,10 +228,8 @@ module.exports = {
|
|
|
229
228
|
}
|
|
230
229
|
],
|
|
231
230
|
|
|
232
|
-
/*
|
|
233
231
|
"no-duplicate-imports": "off",
|
|
234
232
|
"import/no-duplicates": "error",
|
|
235
|
-
*/
|
|
236
233
|
|
|
237
234
|
"no-empty-function": "off",
|
|
238
235
|
"@typescript-eslint/no-empty-function": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/style_guides",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
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,26 +19,30 @@
|
|
|
19
19
|
],
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"@typescript-eslint/
|
|
25
|
-
"eslint": "~
|
|
26
|
-
"eslint
|
|
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",
|
|
27
|
+
"eslint-plugin-import": "2.31.0",
|
|
28
|
+
"eslint-plugin-n": "~17.11.0",
|
|
27
29
|
"eslint-plugin-react": "~7.37.0",
|
|
28
|
-
"eslint-plugin-vue": "~9.
|
|
30
|
+
"eslint-plugin-vue": "~9.29.0",
|
|
29
31
|
"eslint-plugin-vue-pug": "~0.6.2",
|
|
30
|
-
"typescript": "~5.
|
|
32
|
+
"typescript": "~5.6.0"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@typescript-eslint/
|
|
36
|
-
"eslint": "
|
|
37
|
-
"eslint
|
|
38
|
-
"eslint-plugin-
|
|
39
|
-
"eslint-plugin-
|
|
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",
|
|
40
|
+
"eslint-plugin-import": "2.31.0",
|
|
41
|
+
"eslint-plugin-n": "17.11.1",
|
|
42
|
+
"eslint-plugin-react": "7.37.1",
|
|
43
|
+
"eslint-plugin-vue": "9.29.0",
|
|
40
44
|
"eslint-plugin-vue-pug": "0.6.2",
|
|
41
|
-
"typescript": "5.
|
|
45
|
+
"typescript": "5.6.3",
|
|
42
46
|
"vue-facing-decorator": "3.0.4"
|
|
43
47
|
},
|
|
44
48
|
"files": [
|