@yamato-daiwa/style_guides 0.1.1 → 0.1.2
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.
|
@@ -180,26 +180,30 @@ module.exports = {
|
|
|
180
180
|
"@stylistic/comma-dangle": [ "warn", "never" ],
|
|
181
181
|
"@stylistic/comma-spacing": [ "warn", { "before": false, "after": true } ],
|
|
182
182
|
"@stylistic/comma-style": [ "error", "last" ],
|
|
183
|
-
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"function-
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"key-spacing": "warn",
|
|
192
|
-
"keyword-spacing": "warn",
|
|
193
|
-
"lines-around-comment": [ "warn", { "beforeBlockComment": true } ],
|
|
194
|
-
"logical-assignment-operators": [ "warn", "never" ],
|
|
195
|
-
"max-len": [
|
|
183
|
+
"@stylistic/computed-property-spacing": [ "warn", "never" ],
|
|
184
|
+
"@stylistic/dot-location": [ "warn", "object" ],
|
|
185
|
+
"@stylistic/function-call-argument-newline": [ "warn", "consistent" ],
|
|
186
|
+
"@stylistic/function-call-spacing": "warn",
|
|
187
|
+
"@stylistic/function-paren-newline": [ "warn", "consistent" ],
|
|
188
|
+
"@stylistic/generator-star-spacing": [ "warn", { "before": true, "after": false } ],
|
|
189
|
+
"@stylistic/jsx-quotes": [ "error", "prefer-double" ],
|
|
190
|
+
"@stylistic/key-spacing": [
|
|
196
191
|
"warn",
|
|
197
192
|
{
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
193
|
+
"beforeColon": false,
|
|
194
|
+
"afterColon": true,
|
|
195
|
+
"mode": "strict"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"@stylistic/keyword-spacing": [
|
|
199
|
+
"warn",
|
|
200
|
+
{
|
|
201
|
+
"before": true,
|
|
202
|
+
"after": true
|
|
201
203
|
}
|
|
202
204
|
],
|
|
205
|
+
|
|
206
|
+
"logical-assignment-operators": [ "warn", "never" ],
|
|
203
207
|
"max-statements-per-line": [ "warn", { max: 2 } ],
|
|
204
208
|
"new-parens": "error",
|
|
205
209
|
"newline-per-chained-call": [ "warn", { ignoreChainWithDepth: 2 } ],
|
|
@@ -225,6 +229,31 @@ module.exports = {
|
|
|
225
229
|
|
|
226
230
|
|
|
227
231
|
/* --- Neatness --------------------------------------------------------------------------------------------------- */
|
|
232
|
+
"@stylistic/lines-around-comment": [
|
|
233
|
+
"warn",
|
|
234
|
+
{ "beforeBlockComment": true }
|
|
235
|
+
],
|
|
236
|
+
|
|
237
|
+
// "@stylistic/lines-between-class-members": [
|
|
238
|
+
// "warn",
|
|
239
|
+
// {
|
|
240
|
+
// enforce: [
|
|
241
|
+
// { blankLine: "always", prev: "field", next: "method" },
|
|
242
|
+
// { blankLine: "always", prev: "method", next: "method" },
|
|
243
|
+
// { blankLine: "always", prev: "method", next: "filed" }
|
|
244
|
+
// ]
|
|
245
|
+
// }
|
|
246
|
+
// ],
|
|
247
|
+
|
|
248
|
+
"@stylistic/max-len": [
|
|
249
|
+
"warn",
|
|
250
|
+
{
|
|
251
|
+
code: 130,
|
|
252
|
+
ignoreUrls: true,
|
|
253
|
+
ignorePattern: "^\\s{4}\"[@~]?[\\w/:.-]+\";\\s*$"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
|
|
228
257
|
"no-duplicate-imports": "error",
|
|
229
258
|
"no-unused-private-class-members": "error",
|
|
230
259
|
"no-unused-vars": [
|
|
@@ -325,11 +354,11 @@ module.exports = {
|
|
|
325
354
|
"strict": "error",
|
|
326
355
|
|
|
327
356
|
|
|
328
|
-
/* ---
|
|
357
|
+
/* --- Other ------------------------------------------------------------------------------------------------------ */
|
|
329
358
|
"no-await-in-loop": "error",
|
|
330
359
|
"prefer-arrow-callback": "warn",
|
|
331
360
|
"prefer-const": "error",
|
|
332
|
-
"eol-last": [ "
|
|
361
|
+
"@stylistic/eol-last": [ "warn" ],
|
|
333
362
|
"unicode-bom": "error"
|
|
334
363
|
|
|
335
364
|
|
|
@@ -10,7 +10,27 @@ module.exports = {
|
|
|
10
10
|
},
|
|
11
11
|
|
|
12
12
|
rules: {
|
|
13
|
+
|
|
14
|
+
"@stylistic/jsx-child-element-spacing": [ "error" ],
|
|
15
|
+
"@stylistic/jsx-closing-bracket-location": [ "warn" ],
|
|
16
|
+
"@stylistic/jsx-closing-tag-location": [ "warn" ],
|
|
17
|
+
"@stylistic/jsx-curly-brace-presence": [ "warn" ],
|
|
18
|
+
"@stylistic/jsx-curly-newline": [ "warn" ],
|
|
19
|
+
"@stylistic/jsx-curly-spacing": [ "warn", { when: "always" } ],
|
|
20
|
+
"@stylistic/jsx-equals-spacing": [ "warn" ],
|
|
21
|
+
"@stylistic/jsx-first-prop-new-line": [ "warn", "multiline" ],
|
|
22
|
+
"@stylistic/jsx-indent": [ "warn", 2, ],
|
|
23
|
+
"@stylistic/jsx-indent-props": [ "warn", 2 ],
|
|
24
|
+
"@stylistic/jsx-max-props-per-line": [ "warn" ],
|
|
25
|
+
"@stylistic/jsx-one-expression-per-line": [ "warn" ],
|
|
26
|
+
"@stylistic/jsx-props-no-multi-spaces": [ "warn" ],
|
|
27
|
+
"@stylistic/jsx-quotes": [ "error" ],
|
|
28
|
+
"@stylistic/jsx-self-closing-comp": [ "error" ],
|
|
29
|
+
"@stylistic/jsx-tag-spacing": [ "warn" ],
|
|
30
|
+
"@stylistic/jsx-wrap-multilines": [ "warn" ],
|
|
31
|
+
|
|
13
32
|
"react/button-has-type": [ "error" ]
|
|
33
|
+
|
|
14
34
|
}
|
|
15
35
|
|
|
16
36
|
};
|
|
@@ -270,12 +270,6 @@ module.exports = {
|
|
|
270
270
|
"dot-notation": "off",
|
|
271
271
|
"@typescript-eslint/dot-notation": "warn",
|
|
272
272
|
|
|
273
|
-
"func-call-spacing": "off",
|
|
274
|
-
"@typescript-eslint/func-call-spacing": "warn",
|
|
275
|
-
|
|
276
|
-
"keyword-spacing": "off",
|
|
277
|
-
"@typescript-eslint/keyword-spacing": "warn",
|
|
278
|
-
|
|
279
273
|
"@typescript-eslint/member-delimiter-style": [
|
|
280
274
|
"warn",
|
|
281
275
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/style_guides",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "The guidelines for ESLint, Pug and Stylus.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@stylistic/eslint-plugin": "~1.
|
|
19
|
+
"@stylistic/eslint-plugin": "~1.6.1",
|
|
20
20
|
"@typescript-eslint/eslint-plugin": "~6.18.1",
|
|
21
21
|
"@typescript-eslint/parser": "~6.18.1",
|
|
22
22
|
"eslint": "~8.56.0",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"typescript": "~5.3.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@stylistic/eslint-plugin": "1.
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
33
|
-
"@typescript-eslint/parser": "6.
|
|
31
|
+
"@stylistic/eslint-plugin": "1.6.1",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
33
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
34
34
|
"eslint": "8.56.0",
|
|
35
35
|
"eslint-plugin-import": "2.29.1",
|
|
36
36
|
"eslint-plugin-node": "11.1.0",
|
|
37
37
|
"eslint-plugin-react": "7.33.2",
|
|
38
|
-
"eslint-plugin-vue": "9.
|
|
38
|
+
"eslint-plugin-vue": "9.21.1",
|
|
39
39
|
"eslint-plugin-vue-pug": "0.6.1",
|
|
40
40
|
"typescript": "5.3.3"
|
|
41
41
|
},
|