@pawover/kit 0.5.1 → 0.6.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 (53) hide show
  1. package/package.json +42 -3
  2. package/packages/eslint-rules/dist/core.antfu.cjs +78 -0
  3. package/packages/eslint-rules/dist/core.antfu.d.cts +1 -0
  4. package/packages/eslint-rules/dist/core.antfu.d.ts +74 -0
  5. package/packages/eslint-rules/dist/core.antfu.js +79 -0
  6. package/packages/eslint-rules/dist/core.imports.cjs +59 -0
  7. package/packages/eslint-rules/dist/core.imports.d.cts +1 -0
  8. package/packages/eslint-rules/dist/core.imports.d.ts +61 -0
  9. package/packages/eslint-rules/dist/core.imports.js +59 -0
  10. package/packages/eslint-rules/dist/core.importsSort.cjs +7 -0
  11. package/packages/eslint-rules/dist/core.importsSort.d.cts +1 -0
  12. package/packages/eslint-rules/dist/core.importsSort.d.ts +7 -0
  13. package/packages/eslint-rules/dist/core.importsSort.js +7 -0
  14. package/packages/eslint-rules/dist/core.javascript.cjs +1208 -0
  15. package/packages/eslint-rules/dist/core.javascript.d.cts +1 -0
  16. package/packages/eslint-rules/dist/core.javascript.d.ts +1216 -0
  17. package/packages/eslint-rules/dist/core.javascript.js +1208 -0
  18. package/packages/eslint-rules/dist/core.react.cjs +551 -0
  19. package/packages/eslint-rules/dist/core.react.d.cts +1 -0
  20. package/packages/eslint-rules/dist/core.react.d.ts +551 -0
  21. package/packages/eslint-rules/dist/core.react.js +551 -0
  22. package/packages/eslint-rules/dist/core.reactHooks.cjs +107 -0
  23. package/packages/eslint-rules/dist/core.reactHooks.d.cts +1 -0
  24. package/packages/eslint-rules/dist/core.reactHooks.d.ts +107 -0
  25. package/packages/eslint-rules/dist/core.reactHooks.js +107 -0
  26. package/packages/eslint-rules/dist/core.stylistic.cjs +608 -0
  27. package/packages/eslint-rules/dist/core.stylistic.d.cts +1 -0
  28. package/packages/eslint-rules/dist/core.stylistic.d.ts +595 -0
  29. package/packages/eslint-rules/dist/core.stylistic.js +608 -0
  30. package/packages/eslint-rules/dist/core.typescript.cjs +905 -0
  31. package/packages/eslint-rules/dist/core.typescript.d.cts +1 -0
  32. package/packages/eslint-rules/dist/core.typescript.d.ts +917 -0
  33. package/packages/eslint-rules/dist/core.typescript.js +906 -0
  34. package/packages/eslint-rules/dist/core.vue.cjs +312 -0
  35. package/packages/eslint-rules/dist/core.vue.d.cts +1 -0
  36. package/packages/eslint-rules/dist/core.vue.d.ts +293 -0
  37. package/packages/eslint-rules/dist/core.vue.js +313 -0
  38. package/packages/eslint-rules/dist/index.cjs +126 -0
  39. package/packages/eslint-rules/dist/index.d.cts +1 -0
  40. package/packages/eslint-rules/dist/index.d.ts +113 -0
  41. package/packages/eslint-rules/dist/index.js +126 -0
  42. package/packages/eslint-rules/dist/preset-Bk6lxNP0.cjs +107 -0
  43. package/packages/eslint-rules/dist/preset-CQJST7pW.js +102 -0
  44. package/packages/hooks/dist/react.d.ts +1 -1
  45. package/packages/types/dist/index.cjs +0 -0
  46. package/packages/types/dist/index.d.cts +1 -0
  47. package/packages/types/dist/index.d.ts +271 -0
  48. package/packages/types/dist/index.js +0 -0
  49. package/packages/types/dist/react.cjs +0 -0
  50. package/packages/types/dist/react.d.cts +1 -0
  51. package/packages/types/dist/react.d.ts +64 -0
  52. package/packages/types/dist/react.js +0 -0
  53. package/packages/utils/dist/index.d.ts +11 -10
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/pawover"
7
7
  },
8
8
  "description": "一个基于 TypeScript 的开发工具包",
9
- "version": "0.5.1",
9
+ "version": "0.6.0",
10
10
  "type": "module",
11
11
  "engines": {
12
12
  "node": ">=22.20.0"
@@ -33,6 +33,8 @@
33
33
  "files": [
34
34
  "packages/utils/dist",
35
35
  "packages/hooks/dist",
36
+ "packages/types/dist",
37
+ "packages/eslint-rules/dist",
36
38
  "packages/zod/dist"
37
39
  ],
38
40
  "exports": {
@@ -147,13 +149,49 @@
147
149
  "default": "./packages/zod/dist/*"
148
150
  },
149
151
  "require": "./packages/zod/dist/*"
152
+ },
153
+ "./eslint-rules": {
154
+ "import": {
155
+ "types": "./packages/eslint-rules/dist/index.d.ts",
156
+ "default": "./packages/eslint-rules/dist/index.js"
157
+ },
158
+ "require": {
159
+ "types": "./packages/eslint-rules/dist/index.d.cts",
160
+ "default": "./packages/eslint-rules/dist/index.cjs"
161
+ }
162
+ },
163
+ "./types": {
164
+ "import": {
165
+ "types": "./packages/types/dist/index.d.ts",
166
+ "default": "./packages/types/dist/index.js"
167
+ },
168
+ "require": {
169
+ "types": "./packages/types/dist/index.d.cts",
170
+ "default": "./packages/types/dist/index.cjs"
171
+ }
172
+ },
173
+ "./types/react": {
174
+ "import": {
175
+ "types": "./packages/types/dist/react.d.ts",
176
+ "default": "./packages/types/dist/react.js"
177
+ },
178
+ "require": {
179
+ "types": "./packages/types/dist/react.d.cts",
180
+ "default": "./packages/types/dist/react.cjs"
181
+ }
182
+ },
183
+ "./types/*": {
184
+ "import": {
185
+ "types": "./packages/types/dist/*",
186
+ "default": "./packages/types/dist/*"
187
+ },
188
+ "require": "./packages/types/dist/*"
150
189
  }
151
190
  },
152
191
  "devDependencies": {
153
192
  "@commitlint/cli": "^21.2.1",
154
193
  "@commitlint/config-conventional": "^21.2.0",
155
194
  "@eslint-react/eslint-plugin": "^5.18.2",
156
- "@pawover/eslint-rules": "^0.2.3",
157
195
  "@playwright/test": "^1.62.1",
158
196
  "@stylistic/eslint-plugin": "^6.0.0-beta.5",
159
197
  "@testing-library/react": "^16.3.2",
@@ -182,7 +220,8 @@
182
220
  "turbo": "^2.10.8",
183
221
  "typescript": "^6.0.3",
184
222
  "typescript-eslint": "^8.66.0",
185
- "vitest": "^4.1.10"
223
+ "vitest": "^4.1.10",
224
+ "@pawover/kit-eslint-rules": "0.0.0-alpha.1"
186
225
  },
187
226
  "peerDependencies": {
188
227
  "alova": "^3.5.1",
@@ -0,0 +1,78 @@
1
+ //#region src/core.antfu.ts
2
+ var core_antfu_default = {
3
+ /**
4
+ * @desc 强制链式成员访问的换行风格保持一致
5
+ * @descEN Enforce consistent line breaks for chaining member access
6
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
7
+ */
8
+ "antfu/consistent-chaining": 2,
9
+ /**
10
+ * @desc 强制括号和圆括号内部的换行风格保持一致
11
+ * @descEN Enforce consistent line breaks inside braces and parentheses
12
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
13
+ */
14
+ "antfu/consistent-list-newline": 2,
15
+ /**
16
+ * @desc 个人偏好的花括号规则,允许单行同时使用两种风格
17
+ * @descEN Opinionated curly bracket enforcement that allows both styles on one-liners
18
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
19
+ */
20
+ "antfu/curly": 0,
21
+ /**
22
+ * @desc 强制 if 语句与其后续表达式之间换行
23
+ * @descEN Enforce a newline between `if` and its consequent
24
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
25
+ */
26
+ "antfu/if-newline": 2,
27
+ /**
28
+ * @desc 自动去重来自同一来源的具名导入
29
+ * @descEN Auto-fix duplicate named imports from the same source
30
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
31
+ */
32
+ "antfu/import-dedupe": 2,
33
+ /**
34
+ * @desc 强制 `unindent` 模板字符串标签内的缩进风格保持一致
35
+ * @descEN Enforce consistent indentation inside `unindent` tagged template strings
36
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
37
+ */
38
+ "antfu/indent-unindent": [2, {
39
+ indent: require("./preset-Bk6lxNP0.cjs").preset_default.indent,
40
+ tags: [
41
+ "$",
42
+ "unindent",
43
+ "unIndent"
44
+ ]
45
+ }],
46
+ /**
47
+ * @desc 禁止从本地 dist 文件夹导入
48
+ * @descEN Prevent importing from a local `dist` folder
49
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.md
50
+ */
51
+ "antfu/no-import-dist": 2,
52
+ /**
53
+ * @desc 禁止通过相对或绝对路径从 node_modules 导入
54
+ * @descEN Prevent importing from `node_modules` by relative or absolute path
55
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.md
56
+ */
57
+ "antfu/no-import-node-modules-by-path": 2,
58
+ /**
59
+ * @desc 禁止顶层 await
60
+ * @descEN Prevent top-level `await`
61
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.md
62
+ */
63
+ "antfu/no-top-level-await": 0,
64
+ /**
65
+ * @desc 禁止使用 TypeScript 的 export = 语法
66
+ * @descEN Disallow TypeScript's `export =` syntax
67
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.md
68
+ */
69
+ "antfu/no-ts-export-equal": 2,
70
+ /**
71
+ * @desc 强制顶层函数使用 function 关键字声明
72
+ * @descEN Enforce top-level functions to be declared with the `function` keyword
73
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
74
+ */
75
+ "antfu/top-level-function": 2
76
+ };
77
+ //#endregion
78
+ module.exports = core_antfu_default;
@@ -0,0 +1 @@
1
+ export type * from './core.antfu.d.ts'
@@ -0,0 +1,74 @@
1
+ //#region src/core.antfu.d.ts
2
+ declare const _default: {
3
+ /**
4
+ * @desc 强制链式成员访问的换行风格保持一致
5
+ * @descEN Enforce consistent line breaks for chaining member access
6
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
7
+ */
8
+ "antfu/consistent-chaining": number;
9
+ /**
10
+ * @desc 强制括号和圆括号内部的换行风格保持一致
11
+ * @descEN Enforce consistent line breaks inside braces and parentheses
12
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
13
+ */
14
+ "antfu/consistent-list-newline": number;
15
+ /**
16
+ * @desc 个人偏好的花括号规则,允许单行同时使用两种风格
17
+ * @descEN Opinionated curly bracket enforcement that allows both styles on one-liners
18
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
19
+ */
20
+ "antfu/curly": number;
21
+ /**
22
+ * @desc 强制 if 语句与其后续表达式之间换行
23
+ * @descEN Enforce a newline between `if` and its consequent
24
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
25
+ */
26
+ "antfu/if-newline": number;
27
+ /**
28
+ * @desc 自动去重来自同一来源的具名导入
29
+ * @descEN Auto-fix duplicate named imports from the same source
30
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
31
+ */
32
+ "antfu/import-dedupe": number;
33
+ /**
34
+ * @desc 强制 `unindent` 模板字符串标签内的缩进风格保持一致
35
+ * @descEN Enforce consistent indentation inside `unindent` tagged template strings
36
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
37
+ */
38
+ "antfu/indent-unindent": (number | {
39
+ indent: number;
40
+ tags: string[];
41
+ })[];
42
+ /**
43
+ * @desc 禁止从本地 dist 文件夹导入
44
+ * @descEN Prevent importing from a local `dist` folder
45
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.md
46
+ */
47
+ "antfu/no-import-dist": number;
48
+ /**
49
+ * @desc 禁止通过相对或绝对路径从 node_modules 导入
50
+ * @descEN Prevent importing from `node_modules` by relative or absolute path
51
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.md
52
+ */
53
+ "antfu/no-import-node-modules-by-path": number;
54
+ /**
55
+ * @desc 禁止顶层 await
56
+ * @descEN Prevent top-level `await`
57
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.md
58
+ */
59
+ "antfu/no-top-level-await": number;
60
+ /**
61
+ * @desc 禁止使用 TypeScript 的 export = 语法
62
+ * @descEN Disallow TypeScript's `export =` syntax
63
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.md
64
+ */
65
+ "antfu/no-ts-export-equal": number;
66
+ /**
67
+ * @desc 强制顶层函数使用 function 关键字声明
68
+ * @descEN Enforce top-level functions to be declared with the `function` keyword
69
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
70
+ */
71
+ "antfu/top-level-function": number;
72
+ };
73
+ //#endregion
74
+ export { _default as default };
@@ -0,0 +1,79 @@
1
+ import { t as preset_default } from "./preset-CQJST7pW.js";
2
+ //#region src/core.antfu.ts
3
+ var core_antfu_default = {
4
+ /**
5
+ * @desc 强制链式成员访问的换行风格保持一致
6
+ * @descEN Enforce consistent line breaks for chaining member access
7
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
8
+ */
9
+ "antfu/consistent-chaining": 2,
10
+ /**
11
+ * @desc 强制括号和圆括号内部的换行风格保持一致
12
+ * @descEN Enforce consistent line breaks inside braces and parentheses
13
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
14
+ */
15
+ "antfu/consistent-list-newline": 2,
16
+ /**
17
+ * @desc 个人偏好的花括号规则,允许单行同时使用两种风格
18
+ * @descEN Opinionated curly bracket enforcement that allows both styles on one-liners
19
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
20
+ */
21
+ "antfu/curly": 0,
22
+ /**
23
+ * @desc 强制 if 语句与其后续表达式之间换行
24
+ * @descEN Enforce a newline between `if` and its consequent
25
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
26
+ */
27
+ "antfu/if-newline": 2,
28
+ /**
29
+ * @desc 自动去重来自同一来源的具名导入
30
+ * @descEN Auto-fix duplicate named imports from the same source
31
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
32
+ */
33
+ "antfu/import-dedupe": 2,
34
+ /**
35
+ * @desc 强制 `unindent` 模板字符串标签内的缩进风格保持一致
36
+ * @descEN Enforce consistent indentation inside `unindent` tagged template strings
37
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
38
+ */
39
+ "antfu/indent-unindent": [2, {
40
+ indent: preset_default.indent,
41
+ tags: [
42
+ "$",
43
+ "unindent",
44
+ "unIndent"
45
+ ]
46
+ }],
47
+ /**
48
+ * @desc 禁止从本地 dist 文件夹导入
49
+ * @descEN Prevent importing from a local `dist` folder
50
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.md
51
+ */
52
+ "antfu/no-import-dist": 2,
53
+ /**
54
+ * @desc 禁止通过相对或绝对路径从 node_modules 导入
55
+ * @descEN Prevent importing from `node_modules` by relative or absolute path
56
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.md
57
+ */
58
+ "antfu/no-import-node-modules-by-path": 2,
59
+ /**
60
+ * @desc 禁止顶层 await
61
+ * @descEN Prevent top-level `await`
62
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.md
63
+ */
64
+ "antfu/no-top-level-await": 0,
65
+ /**
66
+ * @desc 禁止使用 TypeScript 的 export = 语法
67
+ * @descEN Disallow TypeScript's `export =` syntax
68
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.md
69
+ */
70
+ "antfu/no-ts-export-equal": 2,
71
+ /**
72
+ * @desc 强制顶层函数使用 function 关键字声明
73
+ * @descEN Enforce top-level functions to be declared with the `function` keyword
74
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
75
+ */
76
+ "antfu/top-level-function": 2
77
+ };
78
+ //#endregion
79
+ export { core_antfu_default as default };
@@ -0,0 +1,59 @@
1
+ //#region src/core.imports.ts
2
+ var core_imports_default = {
3
+ /**
4
+ * @desc 强制类型导入的标记风格保持一致(顶级或内联)
5
+ * @descEN Enforce consistent style for type-only import specifiers (top-level vs inline)
6
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
7
+ */
8
+ "imports/consistent-type-specifier-style": [2, "prefer-top-level"],
9
+ /**
10
+ * @desc 确保所有导出语句都在文件末尾
11
+ * @descEN Ensure all exports are declared at the bottom of the file
12
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
13
+ */
14
+ "imports/exports-last": 0,
15
+ /**
16
+ * @desc 确保所有 import 语句在文件顶部
17
+ * @descEN Ensure all imports are at the top of the file
18
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
19
+ */
20
+ "imports/first": 2,
21
+ /**
22
+ * @desc 强制在最后一个 import 或 require 语句后留有空行
23
+ * @descEN Enforce one or more empty lines after the last top-level import or require
24
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
25
+ */
26
+ "imports/newline-after-import": [2, { count: 1 }],
27
+ /**
28
+ * @desc 禁止使用默认导出
29
+ * @descEN Disallow default exports
30
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
31
+ */
32
+ "imports/no-default-export": 0,
33
+ /**
34
+ * @desc 禁止重复导入同一模块
35
+ * @descEN Disallow duplicate imports from the same module
36
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
37
+ */
38
+ "imports/no-duplicates": 2,
39
+ /**
40
+ * @desc 禁止使用 var 或 let 导出可变绑定
41
+ * @descEN Forbid mutable exports using `var` or `let`
42
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
43
+ */
44
+ "imports/no-mutable-exports": 2,
45
+ /**
46
+ * @desc 禁止将默认导入作为具名导入使用
47
+ * @descEN Disallow named import of default exports
48
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
49
+ */
50
+ "imports/no-named-default": 2,
51
+ /**
52
+ * @desc 优先使用默认导出而非具名导出
53
+ * @descEN Prefer default export over named export
54
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
55
+ */
56
+ "imports/prefer-default-export": 0
57
+ };
58
+ //#endregion
59
+ module.exports = core_imports_default;
@@ -0,0 +1 @@
1
+ export type * from './core.imports.d.ts'
@@ -0,0 +1,61 @@
1
+ //#region src/core.imports.d.ts
2
+ declare const _default: {
3
+ /**
4
+ * @desc 强制类型导入的标记风格保持一致(顶级或内联)
5
+ * @descEN Enforce consistent style for type-only import specifiers (top-level vs inline)
6
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
7
+ */
8
+ "imports/consistent-type-specifier-style": (string | number)[];
9
+ /**
10
+ * @desc 确保所有导出语句都在文件末尾
11
+ * @descEN Ensure all exports are declared at the bottom of the file
12
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
13
+ */
14
+ "imports/exports-last": number;
15
+ /**
16
+ * @desc 确保所有 import 语句在文件顶部
17
+ * @descEN Ensure all imports are at the top of the file
18
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
19
+ */
20
+ "imports/first": number;
21
+ /**
22
+ * @desc 强制在最后一个 import 或 require 语句后留有空行
23
+ * @descEN Enforce one or more empty lines after the last top-level import or require
24
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
25
+ */
26
+ "imports/newline-after-import": (number | {
27
+ count: number;
28
+ })[];
29
+ /**
30
+ * @desc 禁止使用默认导出
31
+ * @descEN Disallow default exports
32
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
33
+ */
34
+ "imports/no-default-export": number;
35
+ /**
36
+ * @desc 禁止重复导入同一模块
37
+ * @descEN Disallow duplicate imports from the same module
38
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
39
+ */
40
+ "imports/no-duplicates": number;
41
+ /**
42
+ * @desc 禁止使用 var 或 let 导出可变绑定
43
+ * @descEN Forbid mutable exports using `var` or `let`
44
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
45
+ */
46
+ "imports/no-mutable-exports": number;
47
+ /**
48
+ * @desc 禁止将默认导入作为具名导入使用
49
+ * @descEN Disallow named import of default exports
50
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
51
+ */
52
+ "imports/no-named-default": number;
53
+ /**
54
+ * @desc 优先使用默认导出而非具名导出
55
+ * @descEN Prefer default export over named export
56
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
57
+ */
58
+ "imports/prefer-default-export": number;
59
+ };
60
+ //#endregion
61
+ export { _default as default };
@@ -0,0 +1,59 @@
1
+ //#region src/core.imports.ts
2
+ var core_imports_default = {
3
+ /**
4
+ * @desc 强制类型导入的标记风格保持一致(顶级或内联)
5
+ * @descEN Enforce consistent style for type-only import specifiers (top-level vs inline)
6
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
7
+ */
8
+ "imports/consistent-type-specifier-style": [2, "prefer-top-level"],
9
+ /**
10
+ * @desc 确保所有导出语句都在文件末尾
11
+ * @descEN Ensure all exports are declared at the bottom of the file
12
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
13
+ */
14
+ "imports/exports-last": 0,
15
+ /**
16
+ * @desc 确保所有 import 语句在文件顶部
17
+ * @descEN Ensure all imports are at the top of the file
18
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
19
+ */
20
+ "imports/first": 2,
21
+ /**
22
+ * @desc 强制在最后一个 import 或 require 语句后留有空行
23
+ * @descEN Enforce one or more empty lines after the last top-level import or require
24
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
25
+ */
26
+ "imports/newline-after-import": [2, { count: 1 }],
27
+ /**
28
+ * @desc 禁止使用默认导出
29
+ * @descEN Disallow default exports
30
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
31
+ */
32
+ "imports/no-default-export": 0,
33
+ /**
34
+ * @desc 禁止重复导入同一模块
35
+ * @descEN Disallow duplicate imports from the same module
36
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
37
+ */
38
+ "imports/no-duplicates": 2,
39
+ /**
40
+ * @desc 禁止使用 var 或 let 导出可变绑定
41
+ * @descEN Forbid mutable exports using `var` or `let`
42
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
43
+ */
44
+ "imports/no-mutable-exports": 2,
45
+ /**
46
+ * @desc 禁止将默认导入作为具名导入使用
47
+ * @descEN Disallow named import of default exports
48
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
49
+ */
50
+ "imports/no-named-default": 2,
51
+ /**
52
+ * @desc 优先使用默认导出而非具名导出
53
+ * @descEN Prefer default export over named export
54
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
55
+ */
56
+ "imports/prefer-default-export": 0
57
+ };
58
+ //#endregion
59
+ export { core_imports_default as default };
@@ -0,0 +1,7 @@
1
+ //#region src/core.importsSort.ts
2
+ var core_importsSort_default = {
3
+ "importsSort/imports": 2,
4
+ "importsSort/exports": 2
5
+ };
6
+ //#endregion
7
+ module.exports = core_importsSort_default;
@@ -0,0 +1 @@
1
+ export type * from './core.importsSort.d.ts'
@@ -0,0 +1,7 @@
1
+ //#region src/core.importsSort.d.ts
2
+ declare const _default: {
3
+ "importsSort/imports": number;
4
+ "importsSort/exports": number;
5
+ };
6
+ //#endregion
7
+ export { _default as default };
@@ -0,0 +1,7 @@
1
+ //#region src/core.importsSort.ts
2
+ var core_importsSort_default = {
3
+ "importsSort/imports": 2,
4
+ "importsSort/exports": 2
5
+ };
6
+ //#endregion
7
+ export { core_importsSort_default as default };