@pawover/eslint-rules 0.0.2 → 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.
@@ -1,75 +1,430 @@
1
1
  import preset from "./preset.js";
2
2
  export default {
3
+ /**
4
+ * @desc 强制数组方括号前/后换行
5
+ * @descEN Enforce linebreaks after opening and before closing array brackets
6
+ * @see https://eslint.style/rules/array-bracket-newline
7
+ */
3
8
  "stylistic/array-bracket-newline": [2, "consistent"],
9
+ /**
10
+ * @desc 强制数组方括号内间距一致
11
+ * @descEN Enforce consistent spacing inside array brackets
12
+ * @see https://eslint.style/rules/array-bracket-spacing
13
+ */
4
14
  "stylistic/array-bracket-spacing": [2, "never"],
15
+ /**
16
+ * @desc 强制数组元素间换行风格
17
+ * @descEN Enforce line breaks after each array element
18
+ * @see https://eslint.style/rules/array-element-newline
19
+ */
5
20
  "stylistic/array-element-newline": [2, "consistent"],
21
+ /**
22
+ * @desc 要求箭头函数参数使用圆括号
23
+ * @descEN Require parentheses around arrow function arguments
24
+ * @see https://eslint.style/rules/arrow-parens
25
+ */
6
26
  "stylistic/arrow-parens": 2,
27
+ /**
28
+ * @desc 强制箭头函数箭头前后间距一致
29
+ * @descEN Enforce consistent spacing before and after the arrow in arrow functions
30
+ * @see https://eslint.style/rules/arrow-spacing
31
+ */
7
32
  "stylistic/arrow-spacing": 2,
33
+ /**
34
+ * @desc 强制代码块内单行或多行空格风格
35
+ * @descEN Disallow or enforce spaces inside of blocks after opening block and before closing block
36
+ * @see https://eslint.style/rules/block-spacing
37
+ */
8
38
  "stylistic/block-spacing": 2,
39
+ /**
40
+ * @desc 强制大括号风格一致
41
+ * @descEN Enforce consistent brace style for blocks
42
+ * @see https://eslint.style/rules/brace-style
43
+ */
9
44
  "stylistic/brace-style": 2,
45
+ /**
46
+ * @desc 要求或禁止尾逗号
47
+ * @descEN Require or disallow trailing commas
48
+ * @see https://eslint.style/rules/comma-dangle
49
+ */
10
50
  "stylistic/comma-dangle": [2, "always-multiline"],
51
+ /**
52
+ * @desc 强制逗号前后间距一致
53
+ * @descEN Enforce consistent spacing before and after commas
54
+ * @see https://eslint.style/rules/comma-spacing
55
+ */
11
56
  "stylistic/comma-spacing": 2,
57
+ /**
58
+ * @desc 强制逗号风格(行首/行尾)
59
+ * @descEN Enforce consistent comma style
60
+ * @see https://eslint.style/rules/comma-style
61
+ */
12
62
  "stylistic/comma-style": 0,
63
+ /**
64
+ * @desc 强制计算属性括号内间距一致
65
+ * @descEN Enforce consistent spacing inside computed property brackets
66
+ * @see https://eslint.style/rules/computed-property-spacing
67
+ */
13
68
  "stylistic/computed-property-spacing": 2,
69
+ /**
70
+ * @desc 强制花括号前后换行风格
71
+ * @descEN Enforce consistent line breaks after opening and before closing braces
72
+ * @see https://eslint.style/rules/curly-newline
73
+ */
14
74
  "stylistic/curly-newline": 2,
75
+ /**
76
+ * @desc 强制点操作符前后换行风格
77
+ * @descEN Enforce consistent newlines before and after dots
78
+ * @see https://eslint.style/rules/dot-location
79
+ */
15
80
  "stylistic/dot-location": 0,
81
+ /**
82
+ * @desc 要求或禁止文件末尾空行
83
+ * @descEN Require or disallow newline at the end of files
84
+ * @see https://eslint.style/rules/eol-last
85
+ */
16
86
  "stylistic/eol-last": 0,
87
+ /**
88
+ * @desc 强制函数调用参数间换行风格
89
+ * @descEN Enforce line breaks between arguments of a function call
90
+ * @see https://eslint.style/rules/function-call-argument-newline
91
+ */
17
92
  "stylistic/function-call-argument-newline": [2, "consistent"],
93
+ /**
94
+ * @desc 要求或禁止函数标识符及其调用间的空格
95
+ * @descEN Require or disallow spacing between function identifiers and their invocations
96
+ * @see https://eslint.style/rules/function-call-spacing
97
+ */
18
98
  "stylistic/function-call-spacing": 2,
99
+ /**
100
+ * @desc 强制函数括号内换行风格
101
+ * @descEN Enforce consistent line breaks inside function parentheses
102
+ * @see https://eslint.style/rules/function-paren-newline
103
+ */
19
104
  "stylistic/function-paren-newline": [2, "multiline-arguments"],
105
+ /**
106
+ * @desc 强制 generator 函数中 * 周边间距一致
107
+ * @descEN Enforce consistent spacing around `*` operators in generator functions
108
+ * @see https://eslint.style/rules/generator-star-spacing
109
+ */
20
110
  "stylistic/generator-star-spacing": 2,
111
+ /**
112
+ * @desc 强制箭头函数体的换行位置
113
+ * @descEN Enforce the location of arrow function bodies
114
+ * @see https://eslint.style/rules/implicit-arrow-linebreak
115
+ */
21
116
  "stylistic/implicit-arrow-linebreak": 2,
117
+ /**
118
+ * @desc 强制一致的缩进
119
+ * @descEN Enforce consistent indentation
120
+ * @see https://eslint.style/rules/indent
121
+ */
22
122
  "stylistic/indent": [2, preset.indent],
123
+ /**
124
+ * @desc 二元运算符的缩进
125
+ * @descEN Indentation for binary operators
126
+ * @see https://eslint.style/rules/indent-binary-ops
127
+ */
23
128
  "stylistic/indent-binary-ops": [2, preset.indent],
129
+ /**
130
+ * @desc 强制或禁止 JSX 属性/表达式花括号内空格
131
+ * @descEN Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
132
+ * @see https://eslint.style/rules/jsx-child-element-spacing
133
+ */
24
134
  "stylistic/jsx-child-element-spacing": 0,
135
+ /**
136
+ * @desc 强制 JSX 闭合括号位置
137
+ * @descEN Enforce closing bracket location in JSX
138
+ * @see https://eslint.style/rules/jsx-closing-bracket-location
139
+ */
25
140
  "stylistic/jsx-closing-bracket-location": 2,
141
+ /**
142
+ * @desc 强制多行 JSX 闭合标签位置
143
+ * @descEN Enforce closing tag location for multiline JSX
144
+ * @see https://eslint.style/rules/jsx-closing-tag-location
145
+ */
26
146
  "stylistic/jsx-closing-tag-location": 2,
147
+ /**
148
+ * @desc 禁止不必要的 JSX 花括号表达式
149
+ * @descEN Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
150
+ * @see https://eslint.style/rules/jsx-curly-brace-presence
151
+ */
27
152
  "stylistic/jsx-curly-brace-presence": 0,
153
+ /**
154
+ * @desc 强制 JSX 花括号内换行风格一致
155
+ * @descEN Enforce consistent linebreaks in curly braces in JSX attributes and expressions
156
+ * @see https://eslint.style/rules/jsx-curly-newline
157
+ */
28
158
  "stylistic/jsx-curly-newline": 2,
159
+ /**
160
+ * @desc 强制或禁止 JSX 花括号内空格
161
+ * @descEN Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
162
+ * @see https://eslint.style/rules/jsx-curly-spacing
163
+ */
29
164
  "stylistic/jsx-curly-spacing": 2,
165
+ /**
166
+ * @desc 强制或禁止 JSX 等号周围空格
167
+ * @descEN Enforce or disallow spaces around equal signs in JSX attributes
168
+ * @see https://eslint.style/rules/jsx-equals-spacing
169
+ */
30
170
  "stylistic/jsx-equals-spacing": 2,
171
+ /**
172
+ * @desc 强制 JSX 第一个属性的位置
173
+ * @descEN Enforce proper position of the first property in JSX
174
+ * @see https://eslint.style/rules/jsx-first-prop-new-line
175
+ */
31
176
  "stylistic/jsx-first-prop-new-line": [2, "multiprop"],
177
+ /**
178
+ * @desc 强制 JSX 作为函数参数时前后换行
179
+ * @descEN Enforce line breaks before and after JSX elements when they are used as arguments to a function
180
+ * @see https://eslint.style/rules/jsx-function-call-newline
181
+ */
32
182
  "stylistic/jsx-function-call-newline": 2,
183
+ /**
184
+ * @desc 强制 JSX props 缩进
185
+ * @descEN Enforce props indentation in JSX
186
+ * @see https://eslint.style/rules/jsx-indent-props
187
+ */
33
188
  "stylistic/jsx-indent-props": [2, preset.indent],
189
+ /**
190
+ * @desc 强制单行 JSX props 最大数量
191
+ * @descEN Enforce maximum of props on a single line in JSX
192
+ * @see https://eslint.style/rules/jsx-max-props-per-line
193
+ */
34
194
  "stylistic/jsx-max-props-per-line": 2,
195
+ /**
196
+ * @desc 要求或禁止 JSX 元素后换行
197
+ * @descEN Require or prevent a new line after jsx elements and expressions
198
+ * @see https://eslint.style/rules/jsx-newline
199
+ */
35
200
  "stylistic/jsx-newline": 0,
201
+ /**
202
+ * @desc 要求每行一个 JSX 表达式
203
+ * @descEN Require one JSX element per line
204
+ * @see https://eslint.style/rules/jsx-one-expression-per-line
205
+ */
36
206
  "stylistic/jsx-one-expression-per-line": [2, { allow: "single-child" }],
207
+ /**
208
+ * @desc 强制用户自定义 JSX 组件使用 PascalCase
209
+ * @descEN Enforce PascalCase for user-defined JSX components
210
+ * @see https://eslint.style/rules/jsx-pascal-case
211
+ */
37
212
  "stylistic/jsx-pascal-case": [2, { allowNamespace: true, allowAllCaps: true }],
213
+ /**
214
+ * @desc 强制 JSX 属性中一致使用双引号或单引号
215
+ * @descEN Enforce the consistent use of either double or single quotes in JSX attributes
216
+ * @see https://eslint.style/rules/jsx-quotes
217
+ */
38
218
  "stylistic/jsx-quotes": 2,
219
+ /**
220
+ * @desc 禁止无子组件的额外闭合标签
221
+ * @descEN Disallow extra closing tags for components without children
222
+ * @see https://eslint.style/rules/jsx-self-closing-comp
223
+ */
39
224
  "stylistic/jsx-self-closing-comp": 2,
225
+ /**
226
+ * @desc 强制 JSX 标签内和标签周围空格
227
+ * @descEN Enforce whitespace in and around the JSX opening and closing brackets
228
+ * @see https://eslint.style/rules/jsx-tag-spacing
229
+ */
40
230
  "stylistic/jsx-tag-spacing": [2, { beforeClosing: "never" }],
231
+ /**
232
+ * @desc 禁止多行 JSX 缺少括号
233
+ * @descEN Disallow missing parentheses around multiline JSX
234
+ * @see https://eslint.style/rules/jsx-wrap-multilines
235
+ */
41
236
  "stylistic/jsx-wrap-multilines": [2, { declaration: "parens-new-line", assignment: "parens-new-line", return: "parens-new-line", arrow: "parens-new-line", condition: "parens-new-line", logical: "parens-new-line", prop: "ignore", propertyValue: "parens-new-line" }],
237
+ /**
238
+ * @desc 强制对象字面量属性键值间间距
239
+ * @descEN Enforce consistent spacing between keys and values in object literal properties
240
+ * @see https://eslint.style/rules/key-spacing
241
+ */
42
242
  "stylistic/key-spacing": 2,
243
+ /**
244
+ * @desc 强制关键字前后间距一致
245
+ * @descEN Enforce consistent spacing before and after keywords
246
+ * @see https://eslint.style/rules/keyword-spacing
247
+ */
43
248
  "stylistic/keyword-spacing": 2,
249
+ /**
250
+ * @desc 强制行注释位置
251
+ * @descEN Enforce position of line comments
252
+ * @see https://eslint.style/rules/line-comment-position
253
+ */
44
254
  "stylistic/line-comment-position": 0,
255
+ /**
256
+ * @desc 强制一致的换行符风格
257
+ * @descEN Enforce consistent linebreak style
258
+ * @see https://eslint.style/rules/linebreak-style
259
+ */
45
260
  "stylistic/linebreak-style": 0,
261
+ /**
262
+ * @desc 要求注释周围有空行
263
+ * @descEN Require empty lines around comments
264
+ * @see https://eslint.style/rules/lines-around-comment
265
+ */
46
266
  "stylistic/lines-around-comment": 0,
267
+ /**
268
+ * @desc 要求或禁止类成员间空行
269
+ * @descEN Require or disallow an empty line between class members
270
+ * @see https://eslint.style/rules/lines-between-class-members
271
+ */
47
272
  "stylistic/lines-between-class-members": 0,
273
+ /**
274
+ * @desc 强制最大行长度
275
+ * @descEN Enforce a maximum line length
276
+ * @see https://eslint.style/rules/max-len
277
+ */
48
278
  "stylistic/max-len": 0,
279
+ /**
280
+ * @desc 强制每行最大语句数
281
+ * @descEN Enforce a maximum number of statements allowed per line
282
+ * @see https://eslint.style/rules/max-statements-per-line
283
+ */
49
284
  "stylistic/max-statements-per-line": 0,
285
+ /**
286
+ * @desc 要求接口和类型字面量使用特定的成员分隔符风格
287
+ * @descEN Require a specific member delimiter style for interfaces and type literals
288
+ * @see https://eslint.style/rules/member-delimiter-style
289
+ */
50
290
  "stylistic/member-delimiter-style": 2,
291
+ /**
292
+ * @desc 强制多行注释风格
293
+ * @descEN Enforce a particular style for multiline comments
294
+ * @see https://eslint.style/rules/multiline-comment-style
295
+ */
51
296
  "stylistic/multiline-comment-style": 0,
297
+ /**
298
+ * @desc 强制三元表达式操作数间换行
299
+ * @descEN Enforce newlines between operands of ternary expressions
300
+ * @see https://eslint.style/rules/multiline-ternary
301
+ */
52
302
  "stylistic/multiline-ternary": [2, "always-multiline"],
303
+ /**
304
+ * @desc 要求或禁止无参构造函数调用时使用括号
305
+ * @descEN Enforce or disallow parentheses when invoking a constructor with no arguments
306
+ * @see https://eslint.style/rules/new-parens
307
+ */
53
308
  "stylistic/new-parens": 2,
309
+ /**
310
+ * @desc 要求链式调用每行一个
311
+ * @descEN Require a newline after each call in a method chain
312
+ * @see https://eslint.style/rules/newline-per-chained-call
313
+ */
54
314
  "stylistic/newline-per-chained-call": 0,
315
+ /**
316
+ * @desc 禁止可能与比较混淆的箭头函数
317
+ * @descEN Disallow arrow functions where they could be confused with comparisons
318
+ * @see https://eslint.style/rules/no-confusing-arrow
319
+ */
55
320
  "stylistic/no-confusing-arrow": 0,
321
+ /**
322
+ * @desc 禁止不必要的括号
323
+ * @descEN Disallow unnecessary parentheses
324
+ * @see https://eslint.style/rules/no-extra-parens
325
+ */
56
326
  "stylistic/no-extra-parens": 0,
327
+ /**
328
+ * @desc 禁止不必要的分号
329
+ * @descEN Disallow unnecessary semicolons
330
+ * @see https://eslint.style/rules/no-extra-semi
331
+ */
57
332
  "stylistic/no-extra-semi": 2,
333
+ /**
334
+ * @desc 禁止数字字面量中前导或尾随小数点
335
+ * @descEN Disallow leading or trailing decimal points in numeric literals
336
+ * @see https://eslint.style/rules/no-floating-decimal
337
+ */
58
338
  "stylistic/no-floating-decimal": 2,
339
+ /**
340
+ * @desc 禁止混用的二元运算符
341
+ * @descEN Disallow mixed binary operators
342
+ * @see https://eslint.style/rules/no-mixed-operators
343
+ */
59
344
  "stylistic/no-mixed-operators": 0,
345
+ /**
346
+ * @desc 禁止混用空格和制表符
347
+ * @descEN Disallow mixed spaces and tabs for indentation
348
+ * @see https://eslint.style/rules/no-mixed-spaces-and-tabs
349
+ */
60
350
  "stylistic/no-mixed-spaces-and-tabs": 2,
351
+ /**
352
+ * @desc 禁止多个空格
353
+ * @descEN Disallow multiple spaces
354
+ * @see https://eslint.style/rules/no-multi-spaces
355
+ */
61
356
  "stylistic/no-multi-spaces": [2, { exceptions: { Property: false, ImportAttribute: false } }],
357
+ /**
358
+ * @desc 禁止多个空行
359
+ * @descEN Disallow multiple empty lines
360
+ * @see https://eslint.style/rules/no-multiple-empty-lines
361
+ */
62
362
  "stylistic/no-multiple-empty-lines": [2, { max: 2, maxEOF: 1, maxBOF: 0 }],
363
+ /**
364
+ * @desc 禁止使用制表符
365
+ * @descEN Disallow all tabs
366
+ * @see https://eslint.style/rules/no-tabs
367
+ */
63
368
  "stylistic/no-tabs": 0,
369
+ /**
370
+ * @desc 禁止行尾尾随空格
371
+ * @descEN Disallow trailing whitespace at the end of lines
372
+ * @see https://eslint.style/rules/no-trailing-spaces
373
+ */
64
374
  "stylistic/no-trailing-spaces": 2,
375
+ /**
376
+ * @desc 禁止属性前有空格
377
+ * @descEN Disallow whitespace before properties
378
+ * @see https://eslint.style/rules/no-whitespace-before-property
379
+ */
65
380
  "stylistic/no-whitespace-before-property": 2,
381
+ /**
382
+ * @desc 强制单行语句体的位置
383
+ * @descEN Enforce the location of single-line statements
384
+ * @see https://eslint.style/rules/nonblock-statement-body-position
385
+ */
66
386
  "stylistic/nonblock-statement-body-position": 0,
387
+ /**
388
+ * @desc 强制对象花括号内换行风格
389
+ * @descEN Enforce consistent line breaks after opening and before closing braces
390
+ * @see https://eslint.style/rules/object-curly-newline
391
+ */
67
392
  "stylistic/object-curly-newline": [2, { consistent: true }],
393
+ /**
394
+ * @desc 强制对象花括号内间距一致
395
+ * @descEN Enforce consistent spacing inside braces
396
+ * @see https://eslint.style/rules/object-curly-spacing
397
+ */
68
398
  "stylistic/object-curly-spacing": [2, "always", { emptyObjects: "never" }],
399
+ /**
400
+ * @desc 强制对象属性分行放置
401
+ * @descEN Enforce placing object properties on separate lines
402
+ * @see https://eslint.style/rules/object-property-newline
403
+ */
69
404
  "stylistic/object-property-newline": 0,
405
+ /**
406
+ * @desc 要求或禁止变量声明间换行
407
+ * @descEN Require or disallow newlines around variable declarations
408
+ * @see https://eslint.style/rules/one-var-declaration-per-line
409
+ */
70
410
  "stylistic/one-var-declaration-per-line": 0,
411
+ /**
412
+ * @desc 强制运算符换行风格
413
+ * @descEN Enforce consistent linebreak style for operators
414
+ * @see https://eslint.style/rules/operator-linebreak
415
+ */
71
416
  "stylistic/operator-linebreak": [2, "before"],
417
+ /**
418
+ * @desc 要求或禁止代码块内填充空行
419
+ * @descEN Require or disallow padding within blocks
420
+ * @see https://eslint.style/rules/padded-blocks
421
+ */
72
422
  "stylistic/padded-blocks": 0,
423
+ /**
424
+ * @desc 要求或禁止语句间填充空行
425
+ * @descEN Require or disallow padding lines between statements
426
+ * @see https://eslint.style/rules/padding-line-between-statements
427
+ */
73
428
  "stylistic/padding-line-between-statements": [
74
429
  2,
75
430
  { blankLine: "always", prev: "*", next: "return" },
@@ -77,25 +432,130 @@ export default {
77
432
  { blankLine: "always", prev: "directive", next: "*" },
78
433
  { blankLine: "any", prev: "directive", next: "directive" },
79
434
  ],
435
+ /**
436
+ * @desc 要求对象字面量属性名使用引号
437
+ * @descEN Require quotes around object literal, type literal, interfaces and enums property names
438
+ * @see https://eslint.style/rules/quote-props
439
+ */
80
440
  "stylistic/quote-props": [2, "consistent-as-needed"],
441
+ /**
442
+ * @desc 强制一致使用反引号/双引号/单引号
443
+ * @descEN Enforce the consistent use of either backticks, double, or single quotes
444
+ * @see https://eslint.style/rules/quotes
445
+ */
81
446
  "stylistic/quotes": 2,
447
+ /**
448
+ * @desc 强制剩余/展开运算符与其表达式间距
449
+ * @descEN Enforce spacing between rest and spread operators and their expressions
450
+ * @see https://eslint.style/rules/rest-spread-spacing
451
+ */
82
452
  "stylistic/rest-spread-spacing": 2,
453
+ /**
454
+ * @desc 要求或禁止分号
455
+ * @descEN Require or disallow semicolons instead of ASI
456
+ * @see https://eslint.style/rules/semi
457
+ */
83
458
  "stylistic/semi": 2,
459
+ /**
460
+ * @desc 强制分号前后间距一致
461
+ * @descEN Enforce consistent spacing before and after semicolons
462
+ * @see https://eslint.style/rules/semi-spacing
463
+ */
84
464
  "stylistic/semi-spacing": 2,
465
+ /**
466
+ * @desc 强制分号位置
467
+ * @descEN Enforce location of semicolons
468
+ * @see https://eslint.style/rules/semi-style
469
+ */
85
470
  "stylistic/semi-style": 2,
471
+ /**
472
+ * @desc 强制代码块前空格一致
473
+ * @descEN Enforce consistent spacing before blocks
474
+ * @see https://eslint.style/rules/space-before-blocks
475
+ */
86
476
  "stylistic/space-before-blocks": 2,
477
+ /**
478
+ * @desc 强制函数括号前空格一致
479
+ * @descEN Enforce consistent spacing before function parenthesis
480
+ * @see https://eslint.style/rules/space-before-function-paren
481
+ */
87
482
  "stylistic/space-before-function-paren": [2, { anonymous: "always", named: "always", asyncArrow: "always", catch: "always" }],
483
+ /**
484
+ * @desc 强制括号内间距一致
485
+ * @descEN Enforce consistent spacing inside parentheses
486
+ * @see https://eslint.style/rules/space-in-parens
487
+ */
88
488
  "stylistic/space-in-parens": 2,
489
+ /**
490
+ * @desc 要求中缀运算符周围空格
491
+ * @descEN Require spacing around infix operators
492
+ * @see https://eslint.style/rules/space-infix-ops
493
+ */
89
494
  "stylistic/space-infix-ops": 2,
495
+ /**
496
+ * @desc 强制一元运算符前后空格一致
497
+ * @descEN Enforce consistent spacing before or after unary operators
498
+ * @see https://eslint.style/rules/space-unary-ops
499
+ */
90
500
  "stylistic/space-unary-ops": 2,
501
+ /**
502
+ * @desc 强制注释中 // 或 /* 后空格一致
503
+ * @descEN Enforce consistent spacing after the `//` or `/*` in a comment
504
+ * @see https://eslint.style/rules/spaced-comment
505
+ */
91
506
  "stylistic/spaced-comment": 2,
507
+ /**
508
+ * @desc 强制 switch 语句冒号周围空格
509
+ * @descEN Enforce spacing around colons of switch statements
510
+ * @see https://eslint.style/rules/switch-colon-spacing
511
+ */
92
512
  "stylistic/switch-colon-spacing": 2,
513
+ /**
514
+ * @desc 要求或禁止模板字符串中表达式周围空格
515
+ * @descEN Require or disallow spacing around embedded expressions of template strings
516
+ * @see https://eslint.style/rules/template-curly-spacing
517
+ */
93
518
  "stylistic/template-curly-spacing": 2,
519
+ /**
520
+ * @desc 要求或禁止模板标签与其字面量间空格
521
+ * @descEN Require or disallow spacing between template tags and their literals
522
+ * @see https://eslint.style/rules/template-tag-spacing
523
+ */
94
524
  "stylistic/template-tag-spacing": 2,
525
+ /**
526
+ * @desc 要求类型注解周围间距一致
527
+ * @descEN Require consistent spacing around type annotations
528
+ * @see https://eslint.style/rules/type-annotation-spacing
529
+ */
95
530
  "stylistic/type-annotation-spacing": 2,
531
+ /**
532
+ * @desc 强制 TypeScript 泛型内间距一致
533
+ * @descEN Enforces consistent spacing inside TypeScript type generics
534
+ * @see https://eslint.style/rules/type-generic-spacing
535
+ */
96
536
  "stylistic/type-generic-spacing": 2,
537
+ /**
538
+ * @desc 要求具名元组中类型声明前有空格
539
+ * @descEN Expect space before the type declaration in the named tuple
540
+ * @see https://eslint.style/rules/type-named-tuple-spacing
541
+ */
97
542
  "stylistic/type-named-tuple-spacing": 2,
543
+ /**
544
+ * @desc 要求立即调用的函数表达式周围有括号
545
+ * @descEN Require parentheses around immediate `function` invocations
546
+ * @see https://eslint.style/rules/wrap-iife
547
+ */
98
548
  "stylistic/wrap-iife": 2,
549
+ /**
550
+ * @desc 要求正则字面量周围有括号
551
+ * @descEN Require parenthesis around regex literals
552
+ * @see https://eslint.style/rules/wrap-regex
553
+ */
99
554
  "stylistic/wrap-regex": 0,
555
+ /**
556
+ * @desc 要求或禁止 yield* 中 * 周围空格
557
+ * @descEN Require or disallow spacing around the `*` in `yield*` expressions
558
+ * @see https://eslint.style/rules/yield-star-spacing
559
+ */
100
560
  "stylistic/yield-star-spacing": 0,
101
561
  };