@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
@@ -0,0 +1,107 @@
1
+ //#region src/core.reactHooks.d.ts
2
+ declare const _default: {
3
+ /**
4
+ * @desc 验证 Hooks 依赖数组包含所有必要的依赖
5
+ * @descEN Validates that dependency arrays for React hooks contain all necessary dependencies
6
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
7
+ */
8
+ "react-hooks/exhaustive-deps": number;
9
+ /**
10
+ * @desc 验证组件和 hooks 遵循 Hooks 规则
11
+ * @descEN Validates that components and hooks follow the Rules of Hooks
12
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/rules-of-hooks
13
+ */
14
+ "react-hooks/rules-of-hooks": number;
15
+ /**
16
+ * @desc 验证定义嵌套组件或 hooks 的高阶函数
17
+ * @descEN Validates higher order functions defining nested components or hooks
18
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/component-hook-factories
19
+ */
20
+ "react-hooks/component-hook-factories": number;
21
+ /**
22
+ * @desc 验证编译器配置选项
23
+ * @descEN Validates the compiler configuration options
24
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/config
25
+ */
26
+ "react-hooks/config": number;
27
+ /**
28
+ * @desc 验证子组件错误是否使用 Error Boundaries
29
+ * @descEN Validates usage of Error Boundaries instead of try/catch for child errors
30
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries
31
+ */
32
+ "react-hooks/error-boundaries": number;
33
+ /**
34
+ * @desc 验证 gating 模式的配置
35
+ * @descEN Validates configuration of gating mode
36
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/gating
37
+ */
38
+ "react-hooks/gating": number;
39
+ /**
40
+ * @desc 禁止在 render 期间对全局变量赋值/修改
41
+ * @descEN Validates against assignment/mutation of globals during render
42
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/globals
43
+ */
44
+ "react-hooks/globals": number;
45
+ /**
46
+ * @desc 禁止修改 props、state 等不可变值
47
+ * @descEN Validates against mutating props, state, and other immutable values
48
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
49
+ */
50
+ "react-hooks/immutability": number;
51
+ /**
52
+ * @desc 禁止使用与记忆化不兼容的库
53
+ * @descEN Validates against usage of libraries which are incompatible with memoization
54
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library
55
+ */
56
+ "react-hooks/incompatible-library": number;
57
+ /**
58
+ * @desc 验证现有手动的记忆化被编译器保留
59
+ * @descEN Validates that existing manual memoization is preserved by the compiler
60
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization
61
+ */
62
+ "react-hooks/preserve-manual-memoization": number;
63
+ /**
64
+ * @desc 验证组件和 hooks 不调用已知的不纯函数
65
+ * @descEN Validates that components/hooks are pure by checking known-impure functions
66
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
67
+ */
68
+ "react-hooks/purity": number;
69
+ /**
70
+ * @desc 验证 ref 的正确使用,禁止在 render 期间读写 ref.current
71
+ * @descEN Validates correct usage of refs, not reading/writing during render
72
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
73
+ */
74
+ "react-hooks/refs": number;
75
+ /**
76
+ * @desc 禁止在 effect 中同步调用 setState
77
+ * @descEN Validates against calling setState synchronously in an effect
78
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
79
+ */
80
+ "react-hooks/set-state-in-effect": number;
81
+ /**
82
+ * @desc 禁止在 render 期间设置状态
83
+ * @descEN Validates against setting state during render
84
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render
85
+ */
86
+ "react-hooks/set-state-in-render": number;
87
+ /**
88
+ * @desc 验证组件是静态的,不会在每次 render 时重建
89
+ * @descEN Validates that components are static, not recreated every render
90
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
91
+ */
92
+ "react-hooks/static-components": number;
93
+ /**
94
+ * @desc 验证 React Compiler 不支持的语法
95
+ * @descEN Validates against syntax that React Compiler does not support
96
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax
97
+ */
98
+ "react-hooks/unsupported-syntax": number;
99
+ /**
100
+ * @desc 验证 useMemo 回调的使用是否没有返回值
101
+ * @descEN Validates usage of the useMemo hook without a return value
102
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo
103
+ */
104
+ "react-hooks/use-memo": number;
105
+ };
106
+ //#endregion
107
+ export { _default as default };
@@ -0,0 +1,107 @@
1
+ //#region src/core.reactHooks.ts
2
+ var core_reactHooks_default = {
3
+ /**
4
+ * @desc 验证 Hooks 依赖数组包含所有必要的依赖
5
+ * @descEN Validates that dependency arrays for React hooks contain all necessary dependencies
6
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/exhaustive-deps
7
+ */
8
+ "react-hooks/exhaustive-deps": 0,
9
+ /**
10
+ * @desc 验证组件和 hooks 遵循 Hooks 规则
11
+ * @descEN Validates that components and hooks follow the Rules of Hooks
12
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/rules-of-hooks
13
+ */
14
+ "react-hooks/rules-of-hooks": 0,
15
+ /**
16
+ * @desc 验证定义嵌套组件或 hooks 的高阶函数
17
+ * @descEN Validates higher order functions defining nested components or hooks
18
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/component-hook-factories
19
+ */
20
+ "react-hooks/component-hook-factories": 0,
21
+ /**
22
+ * @desc 验证编译器配置选项
23
+ * @descEN Validates the compiler configuration options
24
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/config
25
+ */
26
+ "react-hooks/config": 2,
27
+ /**
28
+ * @desc 验证子组件错误是否使用 Error Boundaries
29
+ * @descEN Validates usage of Error Boundaries instead of try/catch for child errors
30
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/error-boundaries
31
+ */
32
+ "react-hooks/error-boundaries": 0,
33
+ /**
34
+ * @desc 验证 gating 模式的配置
35
+ * @descEN Validates configuration of gating mode
36
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/gating
37
+ */
38
+ "react-hooks/gating": 2,
39
+ /**
40
+ * @desc 禁止在 render 期间对全局变量赋值/修改
41
+ * @descEN Validates against assignment/mutation of globals during render
42
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/globals
43
+ */
44
+ "react-hooks/globals": 2,
45
+ /**
46
+ * @desc 禁止修改 props、state 等不可变值
47
+ * @descEN Validates against mutating props, state, and other immutable values
48
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability
49
+ */
50
+ "react-hooks/immutability": 0,
51
+ /**
52
+ * @desc 禁止使用与记忆化不兼容的库
53
+ * @descEN Validates against usage of libraries which are incompatible with memoization
54
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library
55
+ */
56
+ "react-hooks/incompatible-library": 2,
57
+ /**
58
+ * @desc 验证现有手动的记忆化被编译器保留
59
+ * @descEN Validates that existing manual memoization is preserved by the compiler
60
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization
61
+ */
62
+ "react-hooks/preserve-manual-memoization": 2,
63
+ /**
64
+ * @desc 验证组件和 hooks 不调用已知的不纯函数
65
+ * @descEN Validates that components/hooks are pure by checking known-impure functions
66
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/purity
67
+ */
68
+ "react-hooks/purity": 0,
69
+ /**
70
+ * @desc 验证 ref 的正确使用,禁止在 render 期间读写 ref.current
71
+ * @descEN Validates correct usage of refs, not reading/writing during render
72
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
73
+ */
74
+ "react-hooks/refs": 0,
75
+ /**
76
+ * @desc 禁止在 effect 中同步调用 setState
77
+ * @descEN Validates against calling setState synchronously in an effect
78
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect
79
+ */
80
+ "react-hooks/set-state-in-effect": 0,
81
+ /**
82
+ * @desc 禁止在 render 期间设置状态
83
+ * @descEN Validates against setting state during render
84
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-render
85
+ */
86
+ "react-hooks/set-state-in-render": 0,
87
+ /**
88
+ * @desc 验证组件是静态的,不会在每次 render 时重建
89
+ * @descEN Validates that components are static, not recreated every render
90
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/static-components
91
+ */
92
+ "react-hooks/static-components": 0,
93
+ /**
94
+ * @desc 验证 React Compiler 不支持的语法
95
+ * @descEN Validates against syntax that React Compiler does not support
96
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/unsupported-syntax
97
+ */
98
+ "react-hooks/unsupported-syntax": 0,
99
+ /**
100
+ * @desc 验证 useMemo 回调的使用是否没有返回值
101
+ * @descEN Validates usage of the useMemo hook without a return value
102
+ * @see https://react.dev/reference/eslint-plugin-react-hooks/lints/use-memo
103
+ */
104
+ "react-hooks/use-memo": 0
105
+ };
106
+ //#endregion
107
+ export { core_reactHooks_default as default };