fix: eslint
Showing
| ... | ... | @@ -10,7 +10,9 @@ |
| "generate": "nuxt generate", | ||
| "preview": "nuxt preview", | ||
| "postinstall": "nuxt prepare", | ||
| "lint": "eslint . --fix" | ||
| "prepare": "husky install", | ||
| "lint": "eslint .", | ||
| "lint:fix": "eslint . --fix" | ||
| }, | ||
| "dependencies": { | ||
| "@formkit/auto-animate": "^0.8.2", | ||
| ... | ... | @@ -37,5 +39,10 @@ |
| "husky": "^9.0.11", | ||
| "lint-staged": "^15.2.6", | ||
| "vite-plugin-eslint2": "^4.4.0" | ||
| }, | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": ["npm run prepare"] | ||
| } | ||
| } | ||
| } |
想要评论请 注册 或 登录