@pawover/kit 1.0.1-alpha.0 → 1.1.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.
package/README.en.md CHANGED
@@ -64,7 +64,7 @@ import { TypeUtil } from "@pawover/kit/utils";
64
64
  import { useMount } from "@pawover/kit/hooks/react";
65
65
  import { useAlovaRequest } from "@pawover/kit/hooks/alova";
66
66
  import type { AnyObject } from "@pawover/kit/types";
67
- import eslintRules from "@pawover/kit/eslint-rules";
67
+ import pawover from "@pawover/kit/eslint-rules";
68
68
  import { id } from "@pawover/kit/zod";
69
69
 
70
70
  // Type utilities
@@ -78,11 +78,8 @@ useMount(() => {
78
78
  console.log("mounted");
79
79
  });
80
80
 
81
- // ESLint rulesets (flat config)
82
- export default [
83
- { ignores: eslintRules.GLOB_EXCLUDE },
84
- { files: ["**/*.ts"], rules: { ...eslintRules.javascript, ...eslintRules.typescript } },
85
- ];
81
+ // ESLint flat config preset (self-contained)
82
+ export default pawover({ typescript: true });
86
83
 
87
84
  // Zod schemas
88
85
  id.parse("abc"); // "abc"
package/README.md CHANGED
@@ -64,7 +64,7 @@ import { TypeUtil } from "@pawover/kit/utils";
64
64
  import { useMount } from "@pawover/kit/hooks/react";
65
65
  import { useAlovaRequest } from "@pawover/kit/hooks/alova";
66
66
  import type { AnyObject } from "@pawover/kit/types";
67
- import eslintRules from "@pawover/kit/eslint-rules";
67
+ import pawover from "@pawover/kit/eslint-rules";
68
68
  import { id } from "@pawover/kit/zod";
69
69
 
70
70
  // 类型工具
@@ -78,11 +78,8 @@ useMount(() => {
78
78
  console.log("mounted");
79
79
  });
80
80
 
81
- // ESLint 规则集(flat config)
82
- export default [
83
- { ignores: eslintRules.GLOB_EXCLUDE },
84
- { files: ["**/*.ts"], rules: { ...eslintRules.javascript, ...eslintRules.typescript } },
85
- ];
81
+ // ESLint flat config 预设(自包含)
82
+ export default pawover({ typescript: true });
86
83
 
87
84
  // Zod Schema
88
85
  id.parse("abc"); // "abc"
@@ -1,15 +1,4 @@
1
1
  {
2
- "alova": [
3
- "useAlovaPagination",
4
- "useAlovaRequest",
5
- "useAlovaWatcher"
6
- ],
7
- "react": [
8
- "BREAK_POINT_TOKEN",
9
- "useLatest",
10
- "useMount",
11
- "useResponsive",
12
- "useTitle",
13
- "useUnmount"
14
- ]
2
+ "alova": ["useAlovaPagination", "useAlovaRequest", "useAlovaWatcher"],
3
+ "react": ["BREAK_POINT_TOKEN", "useLatest", "useMount", "useResponsive", "useTitle", "useUnmount"]
15
4
  }
package/package.json CHANGED
@@ -6,15 +6,15 @@
6
6
  "url": "https://github.com/pawover"
7
7
  },
8
8
  "description": "一个基于 TypeScript 的开发工具包",
9
- "version": "1.0.1-alpha.0",
9
+ "version": "1.1.0-alpha.1",
10
10
  "type": "module",
11
11
  "engines": {
12
- "node": ">=22.20.0"
12
+ "node": ">=24.21.0"
13
13
  },
14
14
  "devEngines": {
15
15
  "runtime": {
16
16
  "name": "node",
17
- "version": "24.18.0"
17
+ "version": "24.21.0"
18
18
  }
19
19
  },
20
20
  "keywords": [
@@ -157,54 +157,50 @@
157
157
  },
158
158
  "./metadata.json": "./entry/metadata.json"
159
159
  },
160
+ "publishConfig": {
161
+ "access": "public"
162
+ },
160
163
  "dependencies": {
161
- "@pawover/kit-hooks": "0.0.8",
162
- "@pawover/kit-utils": "1.0.0",
164
+ "@pawover/kit-eslint-rules": "0.1.0-alpha.1",
165
+ "@pawover/kit-hooks": "0.0.9-alpha.0",
166
+ "@pawover/kit-utils": "1.0.1-alpha.0",
163
167
  "@pawover/kit-zod": "0.0.4",
164
- "@pawover/kit-eslint-rules": "0.0.6-alpha.0",
165
168
  "@pawover/kit-types": "0.0.4"
166
169
  },
167
170
  "devDependencies": {
168
171
  "@arethetypeswrong/cli": "^0.18.5",
169
- "@changesets/cli": "^3.0.1",
170
- "@commitlint/cli": "^21.2.2",
171
- "@commitlint/config-conventional": "^21.2.2",
172
- "@eslint-react/eslint-plugin": "^5.18.6",
172
+ "@changesets/cli": "^3.0.3",
173
+ "@commitlint/cli": "^21.2.3",
174
+ "@commitlint/config-conventional": "^21.2.3",
173
175
  "@fontsource/ibm-plex-mono": "^5.3.0",
174
- "@playwright/test": "^1.62.1",
175
- "@stylistic/eslint-plugin": "^6.0.0-beta.6",
176
- "@testing-library/react": "^16.3.2",
176
+ "@testing-library/react": "^16.3.3",
177
177
  "@types/fs-extra": "^11.0.4",
178
- "@types/node": "^26.2.0",
179
- "@types/react": "^19.2.18",
180
- "@vitejs/plugin-react": "^6.1.0",
181
- "@vitest/browser-playwright": "^4.1.11",
182
- "@vitest/coverage-v8": "^4.1.11",
178
+ "@types/node": "^26.6.5",
179
+ "@types/react": "^19.3.0",
180
+ "@vitejs/plugin-react": "^6.1.2",
181
+ "@vitest/coverage-v8": "^5.0.3",
183
182
  "alova": "^3.5.5",
184
183
  "commitizen": "^4.3.2",
185
184
  "cross-env": "^10.1.0",
186
185
  "cz-customizable": "^7.5.4",
187
- "eslint": "^10.9.0",
188
- "eslint-plugin-antfu": "^3.2.3",
189
- "eslint-plugin-import-lite": "^0.6.0",
190
- "eslint-plugin-react-hooks": "^7.1.1",
191
- "fs-extra": "^11.4.0",
186
+ "eslint": "^10.12.0",
187
+ "fs-extra": "^11.4.1",
192
188
  "husky": "^9.1.7",
193
- "jsdom": "^30.0.1",
194
- "lint-staged": "^17.3.0",
189
+ "jsdom": "^30.1.2",
190
+ "lint-staged": "^17.6.0",
195
191
  "mathjs": "^15.2.0",
196
- "prettier": "^3.9.6",
192
+ "prettier": "^3.9.10",
197
193
  "react-dom": "19.2.6",
198
194
  "rimraf": "^6.1.3",
199
195
  "rollup-plugin-visualizer": "^7.1.1",
200
- "tsdown": "^0.22.14",
201
- "turbo": "^2.10.11",
196
+ "tsdown": "^0.23.1",
197
+ "turbo": "^2.11.7",
202
198
  "typedoc": "^0.28.20",
203
- "typedoc-plugin-markdown": "^4.12.0",
199
+ "typedoc-plugin-markdown": "^4.13.1",
204
200
  "typescript": "^6.0.3",
205
- "typescript-eslint": "^8.67.0",
206
201
  "vitepress": "^1.6.4",
207
- "vitest": "^4.1.11"
202
+ "vitest": "^5.0.3",
203
+ "@pawover/kit-internal": "0.0.0"
208
204
  },
209
205
  "peerDependencies": {
210
206
  "alova": "^3.5.5",
@@ -230,9 +226,6 @@
230
226
  "optional": true
231
227
  }
232
228
  },
233
- "publishConfig": {
234
- "access": "public"
235
- },
236
229
  "config": {
237
230
  "commitizen": {
238
231
  "path": "node_modules/cz-customizable"
@@ -278,7 +271,7 @@
278
271
  "clean:cache": "rimraf -g .cache",
279
272
  "clean:lib": "rimraf -g node_modules",
280
273
  "clean:output": "rimraf -g **/dist **/*.tgz",
281
- "lib:up": "pnpm dlx taze -I -r --exclude pnpm",
274
+ "lib:up": "pnpm dlx taze -I -r --exclude pnpm --exclude node --include all --no-github-actions",
282
275
  "commit": "git cz"
283
276
  }
284
277
  }