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