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