feat: add lint-staged

This commit is contained in:
Anthony Fu committed 2023-03-04 15:31:40 +01:00
1 parent ce03c11956
commit eaa484d17d
2 files changed
+143 -1

No files matched your search

+10 -1
View File
@@ -12,7 +12,8 @@
"test:e2e": "cypress open",
"test:unit": "vitest",
"typecheck": "vue-tsc --noEmit",
"up": "taze major -I"
"up": "taze major -I",
"postinstall": "npx simple-git-hooks"
},
"dependencies": {
"@unocss/reset": "^0.50.3",
@@ -40,10 +41,12 @@
"eslint": "^8.35.0",
"eslint-plugin-cypress": "^2.12.1",
"https-localhost": "^4.7.1",
"lint-staged": "^13.1.2",
"markdown-it-link-attributes": "^4.0.1",
"markdown-it-shiki": "^0.8.0",
"pnpm": "^7.28.0",
"shiki": "^0.14.1",
"simple-git-hooks": "^2.8.1",
"taze": "^0.9.0",
"typescript": "^4.9.5",
"unocss": "^0.50.3",
@@ -62,5 +65,11 @@
"vite-ssg-sitemap": "^0.4.3",
"vitest": "^0.29.2",
"vue-tsc": "^1.2.0"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}