@pawover/kit-eslint-rules 0.0.0-alpha.1

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/core.antfu.cjs +78 -0
  2. package/dist/core.antfu.d.cts +1 -0
  3. package/dist/core.antfu.d.ts +74 -0
  4. package/dist/core.antfu.js +79 -0
  5. package/dist/core.imports.cjs +59 -0
  6. package/dist/core.imports.d.cts +1 -0
  7. package/dist/core.imports.d.ts +61 -0
  8. package/dist/core.imports.js +59 -0
  9. package/dist/core.importsSort.cjs +7 -0
  10. package/dist/core.importsSort.d.cts +1 -0
  11. package/dist/core.importsSort.d.ts +7 -0
  12. package/dist/core.importsSort.js +7 -0
  13. package/dist/core.javascript.cjs +1208 -0
  14. package/dist/core.javascript.d.cts +1 -0
  15. package/dist/core.javascript.d.ts +1216 -0
  16. package/dist/core.javascript.js +1208 -0
  17. package/dist/core.react.cjs +551 -0
  18. package/dist/core.react.d.cts +1 -0
  19. package/dist/core.react.d.ts +551 -0
  20. package/dist/core.react.js +551 -0
  21. package/dist/core.reactHooks.cjs +107 -0
  22. package/dist/core.reactHooks.d.cts +1 -0
  23. package/dist/core.reactHooks.d.ts +107 -0
  24. package/dist/core.reactHooks.js +107 -0
  25. package/dist/core.stylistic.cjs +608 -0
  26. package/dist/core.stylistic.d.cts +1 -0
  27. package/dist/core.stylistic.d.ts +595 -0
  28. package/dist/core.stylistic.js +608 -0
  29. package/dist/core.typescript.cjs +905 -0
  30. package/dist/core.typescript.d.cts +1 -0
  31. package/dist/core.typescript.d.ts +917 -0
  32. package/dist/core.typescript.js +906 -0
  33. package/dist/core.vue.cjs +312 -0
  34. package/dist/core.vue.d.cts +1 -0
  35. package/dist/core.vue.d.ts +293 -0
  36. package/dist/core.vue.js +313 -0
  37. package/dist/index.cjs +126 -0
  38. package/dist/index.d.cts +1 -0
  39. package/dist/index.d.ts +113 -0
  40. package/dist/index.js +126 -0
  41. package/dist/preset-Bk6lxNP0.cjs +107 -0
  42. package/dist/preset-CQJST7pW.js +102 -0
  43. package/package.json +97 -0
@@ -0,0 +1,102 @@
1
+ //#region src/preset.ts
2
+ /**
3
+ * 预设配置
4
+ *
5
+ * 供各规则组共享的基础预设:缩进大小与 TypeScript 类成员排序规则。
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import preset from "@pawover/kit-eslint-rules/src/preset";
10
+ *
11
+ * console.log(preset.indent); // 2
12
+ * ```
13
+ */
14
+ var preset_default = {
15
+ /** 缩进大小 */
16
+ indent: 2,
17
+ /** TypeScript 类成员排序 */
18
+ tsMemberOrder: [
19
+ "signature",
20
+ "call-signature",
21
+ "static-initialization",
22
+ "#private-static-field",
23
+ "private-static-field",
24
+ "protected-static-field",
25
+ "public-static-field",
26
+ "static-field",
27
+ "#private-instance-field",
28
+ "private-instance-field",
29
+ "protected-instance-field",
30
+ "public-instance-field",
31
+ "instance-field",
32
+ "#private-field",
33
+ "private-field",
34
+ "protected-field",
35
+ "public-field",
36
+ "field",
37
+ "private-constructor",
38
+ "protected-constructor",
39
+ "public-constructor",
40
+ "#private-static-get",
41
+ "#private-static-set",
42
+ "private-static-get",
43
+ "private-static-set",
44
+ "protected-static-get",
45
+ "protected-static-set",
46
+ "public-static-get",
47
+ "public-static-set",
48
+ "static-get",
49
+ "static-set",
50
+ "protected-abstract-get",
51
+ "protected-abstract-set",
52
+ "public-abstract-get",
53
+ "public-abstract-set",
54
+ "abstract-get",
55
+ "abstract-set",
56
+ "#private-instance-get",
57
+ "#private-instance-set",
58
+ "private-instance-get",
59
+ "private-instance-set",
60
+ "protected-instance-get",
61
+ "protected-instance-set",
62
+ "public-instance-get",
63
+ "public-instance-set",
64
+ "instance-get",
65
+ "instance-set",
66
+ "private-decorated-get",
67
+ "private-decorated-set",
68
+ "protected-decorated-get",
69
+ "protected-decorated-set",
70
+ "public-decorated-get",
71
+ "public-decorated-set",
72
+ "decorated-get",
73
+ "decorated-set",
74
+ "#private-get",
75
+ "#private-set",
76
+ "private-get",
77
+ "private-set",
78
+ "protected-get",
79
+ "protected-set",
80
+ "public-get",
81
+ "public-set",
82
+ "get",
83
+ "set",
84
+ "#private-static-method",
85
+ "private-static-method",
86
+ "protected-static-method",
87
+ "public-static-method",
88
+ "static-method",
89
+ "#private-instance-method",
90
+ "private-instance-method",
91
+ "protected-instance-method",
92
+ "public-instance-method",
93
+ "instance-method",
94
+ "private-method",
95
+ "protected-method",
96
+ "public-method",
97
+ "#private-method",
98
+ "method"
99
+ ]
100
+ };
101
+ //#endregion
102
+ export { preset_default as t };
package/package.json ADDED
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "@pawover/kit-eslint-rules",
3
+ "author": {
4
+ "name": "pawover",
5
+ "email": "pawover@outlook.com",
6
+ "url": "https://github.com/pawover"
7
+ },
8
+ "description": "ESLint rulesets: javascript, typescript, react, vue, stylistic, antfu and import rules with presets",
9
+ "version": "0.0.0-alpha.1",
10
+ "type": "module",
11
+ "keywords": [
12
+ "pawover",
13
+ "pawover-kit-eslint-rules"
14
+ ],
15
+ "homepage": "https://github.com/pawover/pawover-kit/packages/eslint-rules#readme",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/pawover/pawover-kit.git"
19
+ },
20
+ "license": "MIT",
21
+ "main": "./dist/index.cjs",
22
+ "module": "./dist/index.js",
23
+ "types": "./dist/index.d.ts",
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "development": "./src/index.ts",
30
+ "import": {
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.js"
33
+ },
34
+ "require": {
35
+ "types": "./dist/index.d.cts",
36
+ "default": "./dist/index.cjs"
37
+ }
38
+ },
39
+ "./src/*": {
40
+ "import": {
41
+ "types": "./dist/*.d.ts",
42
+ "default": "./dist/*.js"
43
+ },
44
+ "require": {
45
+ "types": "./dist/*.d.cts",
46
+ "default": "./dist/*.cjs"
47
+ }
48
+ }
49
+ },
50
+ "scripts": {
51
+ "build:source": "tsdown",
52
+ "package": "pnpm pack",
53
+ "public": "npm publish --access public --tag alpha",
54
+ "check:pack": "pnpm dlx @arethetypeswrong/cli --pack . --profile node16"
55
+ },
56
+ "peerDependencies": {
57
+ "@eslint-react/eslint-plugin": "^5.9.0",
58
+ "@stylistic/eslint-plugin": "^5.10.0",
59
+ "eslint": "^10.0.0",
60
+ "eslint-plugin-antfu": "^3.2.2",
61
+ "eslint-plugin-import-lite": "^0.6.0",
62
+ "eslint-plugin-react-hooks": "^7.0.1",
63
+ "eslint-plugin-simple-import-sort": "^13.0.0",
64
+ "eslint-plugin-vue": "^10.8.0",
65
+ "typescript": "^5.9.3 || ^6.0.0",
66
+ "typescript-eslint": "^8.57.0"
67
+ },
68
+ "peerDependenciesMeta": {
69
+ "@eslint-react/eslint-plugin": {
70
+ "optional": true
71
+ },
72
+ "@stylistic/eslint-plugin": {
73
+ "optional": true
74
+ },
75
+ "eslint-plugin-antfu": {
76
+ "optional": true
77
+ },
78
+ "eslint-plugin-import-lite": {
79
+ "optional": true
80
+ },
81
+ "eslint-plugin-react-hooks": {
82
+ "optional": true
83
+ },
84
+ "eslint-plugin-simple-import-sort": {
85
+ "optional": true
86
+ },
87
+ "eslint-plugin-vue": {
88
+ "optional": true
89
+ },
90
+ "typescript": {
91
+ "optional": true
92
+ },
93
+ "typescript-eslint": {
94
+ "optional": true
95
+ }
96
+ }
97
+ }