Skip to content

Commit 6ff6052

Browse files
committed
refactor: use pnpm, @antfu/eslint-config and update deps
1 parent de96f1f commit 6ff6052

File tree

6 files changed

+7277
-2441
lines changed

6 files changed

+7277
-2441
lines changed

Diff for: .eslintignore

-1
This file was deleted.

Diff for: .eslintrc

-16
This file was deleted.

Diff for: eslint.config.mjs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu().append({
4+
ignores: ['README.md'],
5+
})

Diff for: package.json

+26-21
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
{
22
"name": "h3-valibot",
3+
"type": "module",
34
"version": "0.0.7",
45
"description": "🤖 Schema validation for h3 using Valibot",
5-
"license": "MIT",
66
"author": "Conner Bachmann <github@conner-bachmann.de>",
7+
"license": "MIT",
8+
"keywords": [
9+
"valibot",
10+
"h3",
11+
"validation"
12+
],
713
"sideEffects": false,
8-
"type": "module",
914
"exports": {
1015
".": {
16+
"types": "./dist/index.d.ts",
1117
"import": "./dist/index.mjs",
12-
"require": "./dist/index.cjs",
13-
"types": "./dist/index.d.ts"
18+
"require": "./dist/index.cjs"
1419
}
1520
},
1621
"main": "./dist/index.cjs",
@@ -19,29 +24,29 @@
1924
"files": [
2025
"dist"
2126
],
22-
"keywords": [
23-
"valibot",
24-
"h3",
25-
"validation"
26-
],
2727
"scripts": {
2828
"build": "unbuild",
29-
"lint": "eslint --ext .ts .",
29+
"lint": "eslint .",
3030
"release": "yarn build && changelogen --patch && git push --follow-tags && yarn publish",
31+
"test": "vitest run",
3132
"typecheck": "tsc --noEmit"
3233
},
33-
"devDependencies": {
34-
"@types/node": "^17.0.23",
35-
"@typescript-eslint/eslint-plugin": "^5.30.5",
36-
"@typescript-eslint/parser": "^5.30.5",
37-
"changelogen": "^0.3.5",
38-
"eslint": "^8.12.0",
39-
"typescript": "^4.6.3",
40-
"unbuild": "^0.7.4",
41-
"vitest": "^0.17.0"
42-
},
4334
"dependencies": {
4435
"h3": "^1.13.0",
45-
"valibot": "^0.42.1"
36+
"valibot": "^1.0.0-beta.3"
37+
},
38+
"devDependencies": {
39+
"@antfu/eslint-config": "3.8.0",
40+
"@nuxtjs/eslint-config-typescript": "latest",
41+
"@types/node": "^20",
42+
"@types/serve-handler": "6.1.4",
43+
"@typescript-eslint/eslint-plugin": "8.14.0",
44+
"@typescript-eslint/parser": "8.14.0",
45+
"changelogen": "^0.5.7",
46+
"eslint": "^9.14.0",
47+
"typescript": "^5.6.3",
48+
"unbuild": "latest",
49+
"vite": "5.4.10",
50+
"vitest": "^2.1.4"
4651
}
4752
}

0 commit comments

Comments
 (0)