Skip to content

Commit 3f196bd

Browse files
committed
chore: replace with simple-git-hooks + upgrade deps
1 parent 431d1e0 commit 3f196bd

File tree

6 files changed

+374
-107
lines changed

6 files changed

+374
-107
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: pnpm dev:prepare
3535

3636
- name: 🔠 Lint project
37-
run: pnpm run lint:all
37+
run: pnpm run lint
3838

3939
- name: Test
4040
run: pnpm run test --coverage

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

lint-staged.config.cjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,41 @@
3535
"prepack": "nuxt-module-build build",
3636
"dev": "nuxi dev playground",
3737
"dev:build": "nuxi build playground",
38-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && husky",
39-
"lint": "eslint",
40-
"lint:all": "pnpm lint .",
38+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
39+
"prepare": "simple-git-hooks",
40+
"lint": "eslint .",
4141
"release": "pnpm test && bumpp && npm publish",
4242
"test": "pnpm vitest run"
4343
},
4444
"dependencies": {
45-
"@nuxt/kit": "^3.12.4",
46-
"consola": "^3.2.3",
45+
"@nuxt/kit": "^3.15.4",
46+
"consola": "^3.4.0",
4747
"html-validate": "~9.4.0",
48-
"knitwork": "^1.1.0",
49-
"pathe": "^2.0.0",
50-
"prettier": "^3.3.3",
51-
"std-env": "^3.7.0"
48+
"knitwork": "^1.2.0",
49+
"pathe": "^2.0.3",
50+
"prettier": "^3.5.2",
51+
"std-env": "^3.8.0"
5252
},
5353
"devDependencies": {
5454
"@nuxt/eslint-config": "1.1.0",
5555
"@nuxt/module-builder": "1.0.0-alpha.1",
5656
"@nuxt/test-utils": "3.17.0",
57-
"@vitest/coverage-v8": "3.0.5",
57+
"@vitest/coverage-v8": "3.0.7",
5858
"bumpp": "10.0.3",
5959
"eslint": "9.21.0",
6060
"husky": "9.1.7",
6161
"lint-staged": "15.4.3",
6262
"nuxt": "3.15.4",
63-
"vitest": "3.0.5"
63+
"simple-git-hooks": "2.11.1",
64+
"vitest": "3.0.7"
65+
},
66+
"simple-git-hooks": {
67+
"pre-commit": "npx lint-staged"
68+
},
69+
"lint-staged": {
70+
"*.{js,ts,mjs,cjs,json,.*rc}": [
71+
"npx eslint --fix"
72+
]
6473
},
6574
"resolutions": {
6675
"@nuxt/content": "2.13.4",
@@ -70,5 +79,5 @@
7079
"publishConfig": {
7180
"access": "public"
7281
},
73-
"packageManager": "pnpm@10.4.1"
82+
"packageManager": "pnpm@10.5.2"
7483
}

0 commit comments

Comments
 (0)