@yamato-daiwa/style_guides 0.1.8 → 0.2.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.
|
@@ -85,7 +85,6 @@ module.exports = {
|
|
|
85
85
|
"no-template-curly-in-string": "error",
|
|
86
86
|
"no-unexpected-multiline": "error",
|
|
87
87
|
"class-methods-use-this": "warn",
|
|
88
|
-
"consistent-return": [ "warn", { "treatUndefinedAsUnspecified": true } ],
|
|
89
88
|
"default-case-last": "error",
|
|
90
89
|
"default-param-last": "error",
|
|
91
90
|
"func-names": [ "error", "always" ],
|
|
@@ -100,7 +99,7 @@ module.exports = {
|
|
|
100
99
|
"no-implicit-coercion": "error",
|
|
101
100
|
"no-implicit-globals": "error",
|
|
102
101
|
"no-invalid-this": "error",
|
|
103
|
-
"no-mixed-operators": "error",
|
|
102
|
+
"@stylistic/no-mixed-operators": "error",
|
|
104
103
|
"no-multi-assign": "error",
|
|
105
104
|
"no-negated-condition": "error",
|
|
106
105
|
"no-new": "error",
|
|
@@ -163,9 +162,8 @@ module.exports = {
|
|
|
163
162
|
/* --- Unification of equivalent writings ------------------------------------------------------------------------- */
|
|
164
163
|
"curly": "error",
|
|
165
164
|
"dot-notation": "warn",
|
|
166
|
-
"no-floating-decimal": "error",
|
|
167
165
|
"one-var": [ "error", "never" ],
|
|
168
|
-
"one-var-declaration-per-line": [ "error", "initializations" ],
|
|
166
|
+
"@stylistic/one-var-declaration-per-line": [ "error", "initializations" ],
|
|
169
167
|
"prefer-object-spread": "error",
|
|
170
168
|
"prefer-regex-literals": [ "error", { disallowRedundantWrapping: true } ],
|
|
171
169
|
"quote-props": [ "error", "as-needed" ],
|
|
@@ -206,10 +204,10 @@ module.exports = {
|
|
|
206
204
|
"@stylistic/max-statements-per-line": [ "warn", { max: 2 } ],
|
|
207
205
|
"@stylistic/new-parens": "error",
|
|
208
206
|
"@stylistic/newline-per-chained-call": [ "warn", { ignoreChainWithDepth: 2 } ],
|
|
209
|
-
"no-
|
|
210
|
-
"
|
|
211
|
-
"object-curly-spacing": [ "warn", "always" ],
|
|
212
|
-
"object-property-newline": [ "warn", { allowAllPropertiesOnSameLine: true } ],
|
|
207
|
+
"@stylistic/no-floating-decimal": "error",
|
|
208
|
+
"@stylistic/no-whitespace-before-property": "warn",
|
|
209
|
+
"@stylistic/object-curly-spacing": [ "warn", "always" ],
|
|
210
|
+
"@stylistic/object-property-newline": [ "warn", { allowAllPropertiesOnSameLine: true } ],
|
|
213
211
|
"quotes": [ "error", "double", { avoidEscape: true } ],
|
|
214
212
|
"rest-spread-spacing": [ "warn", "never" ],
|
|
215
213
|
"semi": "error",
|
|
@@ -321,9 +319,9 @@ module.exports = {
|
|
|
321
319
|
"no-warning-comments": "warn",
|
|
322
320
|
"prefer-named-capture-group": "error",
|
|
323
321
|
"spaced-comment": [ "warn", "always", { "block": { "markers": [ "!" ], "balanced": true } } ],
|
|
324
|
-
"no-mixed-spaces-and-tabs": "warn",
|
|
325
|
-
"no-multi-spaces": "warn",
|
|
326
|
-
"no-multiple-empty-lines": [
|
|
322
|
+
"@stylistic/no-mixed-spaces-and-tabs": "warn",
|
|
323
|
+
"@stylistic/no-multi-spaces": "warn",
|
|
324
|
+
"@stylistic/no-multiple-empty-lines": [
|
|
327
325
|
"warn",
|
|
328
326
|
{
|
|
329
327
|
max: 2,
|
|
@@ -331,6 +329,7 @@ module.exports = {
|
|
|
331
329
|
maxEOF: 1
|
|
332
330
|
}
|
|
333
331
|
],
|
|
332
|
+
"@stylistic/object-curly-newline": [ "warn", { consistent: true } ],
|
|
334
333
|
|
|
335
334
|
|
|
336
335
|
/* --- Preventing of deprecated or not recommended functionality -------------------------------------------------- */
|
|
@@ -58,6 +58,7 @@ module.exports = {
|
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
|
|
61
|
+
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
|
|
61
62
|
|
|
62
63
|
/* --- Algorithmic errors preventing ---------------------------------------------------------------------------- */
|
|
63
64
|
"@typescript-eslint/no-array-delete": "error",
|
|
@@ -103,9 +104,6 @@ module.exports = {
|
|
|
103
104
|
}
|
|
104
105
|
],
|
|
105
106
|
|
|
106
|
-
"consistent-return": "off",
|
|
107
|
-
"@typescript-eslint/consistent-return": ECMA_ScriptBasicRules["consistent-return"],
|
|
108
|
-
|
|
109
107
|
"@typescript-eslint/no-confusing-non-null-assertion": "error",
|
|
110
108
|
|
|
111
109
|
"@typescript-eslint/no-for-in-array": "error",
|
|
@@ -293,9 +291,6 @@ module.exports = {
|
|
|
293
291
|
|
|
294
292
|
"@typescript-eslint/no-var-requires": "error",
|
|
295
293
|
|
|
296
|
-
"object-curly-spacing": "off",
|
|
297
|
-
"@typescript-eslint/object-curly-spacing": ECMA_ScriptBasicRules["object-curly-spacing"],
|
|
298
|
-
|
|
299
294
|
"@typescript-eslint/prefer-function-type": "warn",
|
|
300
295
|
|
|
301
296
|
"@typescript-eslint/prefer-includes": "warn",
|
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/style_guides",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The guidelines for ESLint, Pug and Stylus.",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18.18.0"
|
|
7
|
+
},
|
|
5
8
|
"repository": {
|
|
6
9
|
"type": "git",
|
|
7
10
|
"url": "https://github.com/TokugawaTakeshi/Yamato-Daiwa-StyleGuides.git"
|
|
@@ -17,27 +20,27 @@
|
|
|
17
20
|
"license": "MIT",
|
|
18
21
|
"peerDependencies": {
|
|
19
22
|
"@stylistic/eslint-plugin": "~1.7.0",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "~7.
|
|
21
|
-
"@typescript-eslint/parser": "~7.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "~7.4.0",
|
|
24
|
+
"@typescript-eslint/parser": "~7.4.0",
|
|
22
25
|
"eslint": "~8.57.0",
|
|
23
26
|
"eslint-plugin-import": "~2.29.1",
|
|
24
27
|
"eslint-plugin-node": "~11.1.0",
|
|
25
28
|
"eslint-plugin-react": "~7.34.1",
|
|
26
|
-
"eslint-plugin-vue": "~9.
|
|
29
|
+
"eslint-plugin-vue": "~9.24.0",
|
|
27
30
|
"eslint-plugin-vue-pug": "~0.6.1",
|
|
28
31
|
"typescript": "~5.4.2"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
34
|
"@stylistic/eslint-plugin": "1.7.0",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
33
|
-
"@typescript-eslint/parser": "7.
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "7.4.0",
|
|
36
|
+
"@typescript-eslint/parser": "7.4.0",
|
|
34
37
|
"eslint": "8.57.0",
|
|
35
38
|
"eslint-plugin-import": "2.29.1",
|
|
36
39
|
"eslint-plugin-node": "11.1.0",
|
|
37
40
|
"eslint-plugin-react": "7.34.1",
|
|
38
|
-
"eslint-plugin-vue": "9.
|
|
41
|
+
"eslint-plugin-vue": "9.24.0",
|
|
39
42
|
"eslint-plugin-vue-pug": "0.6.2",
|
|
40
|
-
"typescript": "5.4.
|
|
43
|
+
"typescript": "5.4.3"
|
|
41
44
|
},
|
|
42
45
|
"files": [
|
|
43
46
|
"Partials",
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
"Markup.js"
|
|
46
49
|
],
|
|
47
50
|
"scripts": {
|
|
48
|
-
"JavaScript
|
|
49
|
-
"TypeScript
|
|
51
|
+
"JavaScript Test": "eslint Tests/JavaScriptTest.js --config ECMAScript.js",
|
|
52
|
+
"TypeScript Test": "eslint Tests/TypeScriptTest.ts --config ECMAScript.js"
|
|
50
53
|
}
|
|
51
54
|
}
|