ci: add lint-staged check
This commit is contained in:
20
package.json
20
package.json
@@ -28,7 +28,7 @@
|
||||
"vue-about-me": "^1.2.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^2.27.3",
|
||||
"@antfu/eslint-config": "^3.6.0",
|
||||
"@headlessui/vue": "^1.7.23",
|
||||
"@iconify-json/carbon": "^1.2.1",
|
||||
"@iconify-json/fe": "^1.2.0",
|
||||
@@ -55,19 +55,29 @@
|
||||
"eslint": "^9.10.0",
|
||||
"eslint-plugin-format": "^0.1.2",
|
||||
"fake-indexeddb": "^6.0.0",
|
||||
"happy-dom": "^14.12.3",
|
||||
"jsdom": "^24.1.3",
|
||||
"jsdom": "^25.0.0",
|
||||
"lint-staged": "^15.2.10",
|
||||
"nuxt": "3.13.1",
|
||||
"nuxt-fix-ofetch": "^0.0.14",
|
||||
"nuxt-fix-ofetch": "^0.0.15",
|
||||
"nuxt-vitest": "^0.11.5",
|
||||
"pinia": "^2.2.2",
|
||||
"sass": "^1.78.0",
|
||||
"serve": "^14.2.3",
|
||||
"simple-git-hooks": "^2.11.1",
|
||||
"star-markdown-css": "^0.5.1",
|
||||
"tsx": "^4.19.1",
|
||||
"typescript": "^5.6.2",
|
||||
"typescript": "^5.5.4",
|
||||
"unocss": "^0.62.3",
|
||||
"vitest": "^2.1.1",
|
||||
"vue-tsc": "^2.1.6"
|
||||
},
|
||||
"resolutions": {
|
||||
"@typescript-eslint/utils": "^8.2.0"
|
||||
},
|
||||
"simple-git-hooks": {
|
||||
"pre-commit": "pnpm lint-staged"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": "eslint --fix"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user