diff --git a/.husky/commit-msg b/.husky/commit-msg index 5c73e539..1f20408f 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -2,4 +2,4 @@ . "$(dirname "$0")/_/husky.sh" npm run lint:prettier -npx --no commitlint --edit $1 +npx --no -- commitlint --edit $1 diff --git a/package.json b/package.json index 4b10852b..c6612cd8 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "build:types": "rimraf types && tsc -d", "build:example": "vite build example", "lint:eslint": "eslint 'src/**/*.{vue,ts,tsx}' --fix", - "lint:prettier": "prettier --write \"src/**/*\"", + "lint:prettier": "prettier --write \"src/**/*.{vue,ts}\"", "prepare": "husky install", "postinstall": "npm run prepare", "commit": "git-cz",