diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-15 00:26:33 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-15 00:26:33 +0000 |
| commit | 7139425e4fff006138e6aba94089f2782659ce94 (patch) | |
| tree | ca8db40803adf81691a4d2c32d3ab45c46c53667 /package.json | |
| parent | c9aefa81ca1950121d2357fc66afe15eb400f537 (diff) | |
Add lint-staged
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package.json b/package.json index 37c0f68..64bd31b 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,11 @@ "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", + "lint": "eslint .", + "lint:fix": "npm run lint -- --fix", "preview": "nuxt preview", - "postinstall": "nuxt prepare" + "postinstall": "nuxt prepare", + "prepare": "husky" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.5.1", @@ -38,6 +41,8 @@ "@vue/tsconfig": "^0.5.1", "eslint": "^8.49.0", "eslint-plugin-vue": "^9.17.0", + "husky": "^9.0.11", + "lint-staged": "^15.2.2", "npm-run-all2": "^6.1.1", "prettier": "^3.0.3", "sass": "^1.70.0", |
