@houheaven/eslint-config-helper 1.0.0 → 1.1.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.
- package/LICENSE +21 -21
- package/README.md +1 -0
- package/lib/configs/eslint.js +24 -0
- package/{eslint → lib/configs}/file-bof-eof.js +0 -2
- package/{eslint → lib/configs}/legacy.js +5 -5
- package/{eslint → lib/configs}/prettier.js +91 -28
- package/lib/configs/vue-format.js +315 -0
- package/lib/configs/vue2.js +21 -0
- package/lib/configs/vue3.js +21 -0
- package/{eslint/rules/vue.js → lib/configs/vuejs-accessibility.js} +0 -3
- package/{eslint → lib}/eslint-fix.js +0 -0
- package/lib/index.js +14 -0
- package/{eslint/rules → lib/rules/eslint}/best-practices.js +9 -9
- package/{eslint/rules → lib/rules/eslint}/es6.js +7 -7
- package/{eslint/rules → lib/rules/eslint}/node.js +0 -0
- package/{eslint/rules → lib/rules/eslint}/possible-errors.js +9 -9
- package/{eslint/rules → lib/rules/eslint}/strict-mode.js +0 -0
- package/{eslint/rules → lib/rules/eslint}/stylistic-issues.js +48 -44
- package/{eslint/rules → lib/rules/eslint}/variables.js +2 -2
- package/{eslint → lib}/rules/imports.js +4 -4
- package/lib/rules/vue/common-base.js +29 -0
- package/lib/rules/vue/common-eslint.js +209 -0
- package/lib/rules/vue/common-essential.js +267 -0
- package/lib/rules/vue/common-extra.js +281 -0
- package/lib/rules/vue/common-recommended.js +96 -0
- package/lib/rules/vue/common-strongly-recommended.js +138 -0
- package/lib/rules/vue/vue2-essential.js +41 -0
- package/lib/rules/vue/vue2-recommended.js +17 -0
- package/lib/rules/vue/vue2-strongly-recommended.js +16 -0
- package/lib/rules/vue/vue3-essential.js +129 -0
- package/lib/rules/vue/vue3-recommended.js +17 -0
- package/lib/rules/vue/vue3-strongly-recommended.js +24 -0
- package/package.json +5 -4
- package/eslint/index.js +0 -18
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 立树
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 立树
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
// ==========================================================
|
|
3
|
+
// eslint 规则
|
|
4
|
+
// ==========================================================
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
extends: [
|
|
8
|
+
"../rules/eslint/best-practices.js",
|
|
9
|
+
"../rules/eslint/possible-errors.js",
|
|
10
|
+
"../rules/eslint/stylistic-issues.js",
|
|
11
|
+
"../rules/eslint/strict-mode.js",
|
|
12
|
+
"../rules/eslint/es6.js",
|
|
13
|
+
"../rules/eslint/node.js",
|
|
14
|
+
"../rules/eslint/variables.js",
|
|
15
|
+
].map(require.resolve),
|
|
16
|
+
env: {
|
|
17
|
+
browser: true,
|
|
18
|
+
node: true,
|
|
19
|
+
amd: false,
|
|
20
|
+
mocha: false,
|
|
21
|
+
jasmine: false,
|
|
22
|
+
},
|
|
23
|
+
rules: {},
|
|
24
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
extends: [
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
3
|
+
"../rules/eslint/best-practices.js",
|
|
4
|
+
"../rules/eslint/possible-errors.js",
|
|
5
|
+
"../rules/eslint/node.js",
|
|
6
|
+
"../rules/eslint/stylistic-issues.js",
|
|
7
|
+
"../rules/eslint/variables.js",
|
|
8
8
|
].map(require.resolve),
|
|
9
9
|
env: {
|
|
10
10
|
browser: true,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
2
|
const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
|
|
5
3
|
|
|
6
4
|
module.exports = {
|
|
@@ -10,12 +8,14 @@ module.exports = {
|
|
|
10
8
|
|
|
11
9
|
// 强制所有控制语句使用一致的括号风格
|
|
12
10
|
"curly": 0,
|
|
11
|
+
|
|
13
12
|
// 要求在注释周围有空行
|
|
14
13
|
"lines-around-comment": 0,
|
|
14
|
+
|
|
15
15
|
// 强制一行的最大长度
|
|
16
16
|
"max-len": ["warn", {
|
|
17
17
|
"code": 200,
|
|
18
|
-
"tabWidth":
|
|
18
|
+
"tabWidth": 2,
|
|
19
19
|
"comments": 200,
|
|
20
20
|
"ignoreComments": false,
|
|
21
21
|
"ignoreTrailingComments": true,
|
|
@@ -24,10 +24,12 @@ module.exports = {
|
|
|
24
24
|
"ignoreTemplateLiterals": true,
|
|
25
25
|
"ignoreRegExpLiterals": true,
|
|
26
26
|
}],
|
|
27
|
+
|
|
27
28
|
// 禁止在可能与比较操作符相混淆的地方使用箭头函数
|
|
28
29
|
"no-confusing-arrow": ["error", {
|
|
29
30
|
"allowParens": true,
|
|
30
31
|
}],
|
|
32
|
+
|
|
31
33
|
// 禁止混合使用不同的操作符
|
|
32
34
|
"no-mixed-operators": [
|
|
33
35
|
"error",
|
|
@@ -37,54 +39,63 @@ module.exports = {
|
|
|
37
39
|
["&", "|", "^", "~", "<<", ">>", ">>>"],
|
|
38
40
|
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
|
|
39
41
|
["&&", "||"],
|
|
40
|
-
["in", "instanceof"]
|
|
42
|
+
["in", "instanceof"],
|
|
41
43
|
],
|
|
42
44
|
"allowSamePrecedence": true,
|
|
43
|
-
}
|
|
45
|
+
},
|
|
44
46
|
],
|
|
47
|
+
|
|
45
48
|
// 禁用 tab
|
|
46
49
|
"no-tabs": "error",
|
|
50
|
+
|
|
47
51
|
// 禁止出现令人困惑的多行表达式
|
|
48
52
|
"no-unexpected-multiline": "error",
|
|
53
|
+
|
|
49
54
|
// 强制使用一致的反勾号、双引号或单引号
|
|
50
55
|
"quotes": ["warn", "double", { "avoidEscape": true }],
|
|
51
|
-
|
|
52
|
-
"babel/quotes": 0,
|
|
53
|
-
"vue/html-self-closing": 0,
|
|
54
|
-
"vue/max-len": 0,
|
|
56
|
+
|
|
55
57
|
|
|
56
58
|
// 以下的规则在使用Prettier时不需要启用
|
|
57
59
|
|
|
58
60
|
// 在数组开括号后和闭括号前强制换行
|
|
59
61
|
"array-bracket-newline": ["warn", "consistent"],
|
|
62
|
+
|
|
60
63
|
// 强制数组方括号中使用一致的空格
|
|
61
64
|
"array-bracket-spacing": ["error", "never"],
|
|
65
|
+
|
|
62
66
|
// 强制数组元素间出现换行
|
|
63
67
|
"array-element-newline": ["warn", "consistent"],
|
|
68
|
+
|
|
64
69
|
// 要求箭头函数的参数使用圆括号
|
|
65
70
|
"arrow-parens": ["warn", "as-needed"],
|
|
71
|
+
|
|
66
72
|
// 要求箭头函数的箭头之前或之后有空格
|
|
67
73
|
"arrow-spacing": ["warn", {
|
|
68
74
|
"before": true,
|
|
69
75
|
"after": true,
|
|
70
76
|
}],
|
|
77
|
+
|
|
71
78
|
// 禁止或强制在代码块中开括号前和闭括号后有空格
|
|
72
79
|
"block-spacing": ["warn", "always"],
|
|
80
|
+
|
|
73
81
|
// 强制在代码块中使用一致的大括号风格
|
|
74
82
|
"brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
|
|
75
|
-
|
|
83
|
+
|
|
84
|
+
// 要求或禁止使用拖尾逗号(对象、数组、导入、导出、函数参数的最后一项后面是否允许有逗号)
|
|
76
85
|
"comma-dangle": ["warn", {
|
|
77
|
-
arrays: "
|
|
86
|
+
arrays: "always-multiline",
|
|
78
87
|
objects: "always-multiline",
|
|
79
|
-
imports: "
|
|
80
|
-
exports: "
|
|
88
|
+
imports: "always-multiline",
|
|
89
|
+
exports: "always-multiline",
|
|
81
90
|
functions: "never",
|
|
82
91
|
}],
|
|
92
|
+
|
|
83
93
|
// 强制在逗号前后使用一致的空格
|
|
84
94
|
"comma-spacing": ["warn", {
|
|
85
95
|
"before": false,
|
|
86
96
|
"after": true,
|
|
87
97
|
}],
|
|
98
|
+
|
|
88
99
|
// 强制使用一致的逗号风格
|
|
89
100
|
"comma-style": ["warn", "last", {
|
|
90
101
|
exceptions: {
|
|
@@ -101,27 +112,37 @@ module.exports = {
|
|
|
101
112
|
NewExpression: false,
|
|
102
113
|
},
|
|
103
114
|
}],
|
|
115
|
+
|
|
104
116
|
// 强制在计算的属性的方括号中使用一致的空格
|
|
105
117
|
"computed-property-spacing": ["warn", "never"],
|
|
118
|
+
|
|
106
119
|
// 强制在点号之前和之后一致的换行
|
|
107
120
|
"dot-location": ["warn", "property"],
|
|
121
|
+
|
|
108
122
|
// 要求或禁止文件末尾存在空行
|
|
109
123
|
"eol-last": ["warn", "always"],
|
|
124
|
+
|
|
110
125
|
// 要求或禁止在函数标识符和其调用之间有空格
|
|
111
126
|
"func-call-spacing": ["warn", "never"],
|
|
127
|
+
|
|
112
128
|
// 函数调用参数换行符
|
|
113
129
|
"function-call-argument-newline": ["warn", "consistent"],
|
|
130
|
+
|
|
114
131
|
// 强制在函数括号内使用一致的换行
|
|
115
132
|
"function-paren-newline": ["warn", "consistent"],
|
|
133
|
+
|
|
116
134
|
// generator 函数中 * 号
|
|
117
135
|
// "generator-star": "error",
|
|
136
|
+
|
|
118
137
|
// 强制 generator 函数中 * 号周围使用一致的空格
|
|
119
138
|
"generator-star-spacing": ["warn", {
|
|
120
139
|
before: false,
|
|
121
140
|
after: true,
|
|
122
141
|
}],
|
|
142
|
+
|
|
123
143
|
// 强制隐式返回的箭头函数体的位置
|
|
124
144
|
"implicit-arrow-linebreak": ["warn", "beside"],
|
|
145
|
+
|
|
125
146
|
// 强制使用一致的缩进
|
|
126
147
|
"indent": ["error", 2, {
|
|
127
148
|
SwitchCase: 1,
|
|
@@ -160,23 +181,26 @@ module.exports = {
|
|
|
160
181
|
"JSXClosingFragment",
|
|
161
182
|
"JSXText",
|
|
162
183
|
"JSXEmptyExpression",
|
|
163
|
-
"JSXSpreadChild"
|
|
184
|
+
"JSXSpreadChild",
|
|
164
185
|
],
|
|
165
186
|
ignoreComments: false,
|
|
166
187
|
}],
|
|
188
|
+
|
|
167
189
|
// 强制在 JSX 属性中一致地使用双引号或单引号
|
|
168
190
|
"jsx-quotes": ["warn", "prefer-double"],
|
|
191
|
+
|
|
169
192
|
// 强制在对象字面量的键和值之间使用一致的空格
|
|
170
193
|
"key-spacing": ["warn", {
|
|
171
194
|
beforeColon: false,
|
|
172
195
|
afterColon: true,
|
|
173
196
|
}],
|
|
197
|
+
|
|
174
198
|
// 强制关键字周围空格的一致性
|
|
175
199
|
"keyword-spacing": ["warn", {
|
|
176
200
|
"before": true,
|
|
177
201
|
"after": true,
|
|
178
202
|
"overrides": {
|
|
179
|
-
"if": { "after":
|
|
203
|
+
"if": { "after": true },
|
|
180
204
|
"for": { "after": false },
|
|
181
205
|
"while": { "after": false },
|
|
182
206
|
"switch": { "after": false },
|
|
@@ -186,17 +210,22 @@ module.exports = {
|
|
|
186
210
|
"throw": { "after": true },
|
|
187
211
|
},
|
|
188
212
|
}],
|
|
213
|
+
|
|
189
214
|
// 强制使用一致的换行符风格
|
|
190
215
|
// Windows - "CRLF"
|
|
191
216
|
// Unix、Linux - "LF"
|
|
192
217
|
"linebreak-style": ["warn", "unix"],
|
|
218
|
+
|
|
193
219
|
// 要求或禁止在三元操作数中间换行
|
|
194
220
|
// TODO: enable?
|
|
195
221
|
"multiline-ternary": ["off", "never"],
|
|
222
|
+
|
|
196
223
|
// 要求方法链中每个调用都有一个换行符
|
|
197
224
|
"newline-per-chained-call": ["warn", { ignoreChainWithDepth: 4 }],
|
|
225
|
+
|
|
198
226
|
// 强制或禁止调用无参构造函数时有圆括号
|
|
199
227
|
"new-parens": ["error", "always"],
|
|
228
|
+
|
|
200
229
|
// 禁止冗余的括号
|
|
201
230
|
"no-extra-parens": ["off", "all", {
|
|
202
231
|
"conditionalAssign": true,
|
|
@@ -205,95 +234,125 @@ module.exports = {
|
|
|
205
234
|
"ignoreJSX": "all", // delegate to eslint-plugin-react
|
|
206
235
|
"enforceForArrowConditionals": false,
|
|
207
236
|
}],
|
|
237
|
+
|
|
208
238
|
// 禁止不必要的分号
|
|
209
239
|
"no-extra-semi": "warn",
|
|
240
|
+
|
|
210
241
|
// 禁止数字字面量中使用前导和末尾小数点
|
|
211
242
|
"no-floating-decimal": "error",
|
|
243
|
+
|
|
212
244
|
// 禁止空格和 tab 的混合缩进
|
|
213
245
|
"no-mixed-spaces-and-tabs": "warn",
|
|
246
|
+
|
|
214
247
|
// 禁止使用多个空格
|
|
215
248
|
"no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
|
|
249
|
+
|
|
216
250
|
// 禁止出现多行空行
|
|
217
251
|
"no-multiple-empty-lines": ["warn", {
|
|
218
252
|
"max": 2,
|
|
219
253
|
"maxBOF": 1,
|
|
220
254
|
"maxEOF": 1,
|
|
221
255
|
}],
|
|
256
|
+
|
|
222
257
|
// 禁用行尾空格
|
|
223
258
|
"no-trailing-spaces": ["warn", {
|
|
224
259
|
"skipBlankLines": true,
|
|
225
260
|
"ignoreComments": false,
|
|
226
261
|
}],
|
|
262
|
+
|
|
227
263
|
// 禁止属性前有空白
|
|
228
264
|
"no-whitespace-before-property": "error",
|
|
265
|
+
|
|
229
266
|
// 强制单个语句的位置
|
|
230
267
|
"nonblock-statement-body-position": "off",
|
|
231
|
-
|
|
268
|
+
|
|
232
269
|
// 强制大括号内换行符的一致性
|
|
233
|
-
"object-curly-newline": ["
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
270
|
+
"object-curly-newline": ["warn", {
|
|
271
|
+
ObjectExpression: { minProperties: 40, multiline: true, consistent: true },
|
|
272
|
+
ObjectPattern: "never",
|
|
273
|
+
ImportDeclaration: "never",
|
|
274
|
+
ExportDeclaration: "always",
|
|
238
275
|
}],
|
|
276
|
+
|
|
239
277
|
// 强制在花括号中使用一致的空格
|
|
240
278
|
"object-curly-spacing": ["warn", "always", {
|
|
241
|
-
|
|
242
|
-
|
|
279
|
+
arraysInObjects: false,
|
|
280
|
+
objectsInObjects: true,
|
|
243
281
|
}],
|
|
282
|
+
|
|
244
283
|
// 强制将对象的属性放在不同的行上
|
|
245
284
|
"object-property-newline": ["off", {
|
|
246
|
-
|
|
285
|
+
allowAllPropertiesOnSameLine: true,
|
|
247
286
|
}],
|
|
287
|
+
|
|
248
288
|
// 要求或禁止在变量声明周围换行
|
|
249
289
|
"one-var-declaration-per-line": "off",
|
|
290
|
+
|
|
250
291
|
// 强制操作符使用一致的换行符
|
|
251
292
|
"operator-linebreak": ["off", "before", { overrides: { "=": "none" } }],
|
|
293
|
+
|
|
252
294
|
// 要求或禁止块内填充
|
|
253
295
|
"padded-blocks": "off",
|
|
296
|
+
|
|
254
297
|
// 要求对象字面量属性名称用引号括起来
|
|
255
298
|
"quote-props": ["warn", "consistent"],
|
|
299
|
+
|
|
256
300
|
// 强制剩余和扩展运算符及其表达式之间有空格
|
|
257
301
|
"rest-spread-spacing": ["error", "never"],
|
|
302
|
+
|
|
258
303
|
// 要求或禁止使用分号代替 ASI
|
|
259
304
|
"semi": ["error", "always"],
|
|
305
|
+
|
|
260
306
|
// 强制分号之前和之后使用一致的空格
|
|
261
307
|
"semi-spacing": ["error", { before: false, after: true }],
|
|
308
|
+
|
|
262
309
|
// 强制分号的位置
|
|
263
310
|
"semi-style": ["error", "last"],
|
|
311
|
+
|
|
264
312
|
// 要求或禁止语句块之前的空格(代码块大括号前面是否需要空格)
|
|
265
313
|
"space-before-blocks": ["warn", {
|
|
266
314
|
"functions": "always",
|
|
267
315
|
"keywords": "always",
|
|
268
316
|
"classes": "always",
|
|
269
317
|
}],
|
|
318
|
+
|
|
270
319
|
// 强制在 function 的左括号之前使用一致的空格
|
|
271
320
|
"space-before-function-paren": ["error", {
|
|
272
321
|
"anonymous": "always",
|
|
273
322
|
"named": "never",
|
|
274
323
|
"asyncArrow": "always",
|
|
275
324
|
}],
|
|
325
|
+
|
|
276
326
|
// 强制在圆括号内使用一致的空格
|
|
277
|
-
"space-in-parens": ["
|
|
327
|
+
"space-in-parens": ["warn", "never"],
|
|
328
|
+
|
|
278
329
|
// 要求中缀操作符周围有空格(+-*/?| etc.)
|
|
279
|
-
"space-infix-ops": "
|
|
330
|
+
"space-infix-ops": "warn",
|
|
331
|
+
|
|
280
332
|
// 强制在一元操作符前后使用一致的空格
|
|
281
|
-
"space-unary-ops": ["
|
|
333
|
+
"space-unary-ops": ["warn", {
|
|
282
334
|
"words": true,
|
|
283
335
|
"nonwords": false,
|
|
284
336
|
}],
|
|
337
|
+
|
|
285
338
|
// 强制在 switch 的冒号左右有空格
|
|
286
339
|
"switch-colon-spacing": ["error", { after: true, before: false }],
|
|
340
|
+
|
|
287
341
|
// 要求或禁止模板字符串中的嵌入表达式周围空格的使用
|
|
288
|
-
"template-curly-spacing": "
|
|
342
|
+
"template-curly-spacing": "warn",
|
|
343
|
+
|
|
289
344
|
// 要求或禁止在模板标记和它们的字面量之间有空格
|
|
290
345
|
"template-tag-spacing": ["error", "never"],
|
|
346
|
+
|
|
291
347
|
// 要求或禁止 Unicode 字节顺序标记 (BOM)
|
|
292
348
|
"unicode-bom": ["off", "never"],
|
|
349
|
+
|
|
293
350
|
// 要求 IIFE 使用括号括起来
|
|
294
351
|
"wrap-iife": ["error", "outside", { functionPrototypeMethods: true }],
|
|
352
|
+
|
|
295
353
|
// 要求正则表达式被括号括起来
|
|
296
354
|
"wrap-regex": "off",
|
|
355
|
+
|
|
297
356
|
// 强制在 yield* 表达式中 * 周围使用空格
|
|
298
357
|
"yield-star-spacing": ["error", "both"],
|
|
299
358
|
|
|
@@ -312,6 +371,8 @@ module.exports = {
|
|
|
312
371
|
"space-unary-word-ops": "off",
|
|
313
372
|
|
|
314
373
|
|
|
374
|
+
"@typescript-eslint/quotes": 0,
|
|
375
|
+
"babel/quotes": 0,
|
|
315
376
|
"@babel/object-curly-spacing": "off",
|
|
316
377
|
"@babel/semi": "off",
|
|
317
378
|
"@typescript-eslint/brace-style": "off",
|
|
@@ -398,6 +459,8 @@ module.exports = {
|
|
|
398
459
|
"vue/space-infix-ops": "off",
|
|
399
460
|
"vue/space-unary-ops": "off",
|
|
400
461
|
"vue/template-curly-spacing": "off",
|
|
462
|
+
"vue/html-self-closing": 0,
|
|
463
|
+
"vue/max-len": 0,
|
|
401
464
|
|
|
402
465
|
...(includeDeprecated && {
|
|
403
466
|
// Deprecated since version 4.0.0.
|