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