Skip to content

Commit

Permalink
ci: change pre-commit hook to
Browse files Browse the repository at this point in the history
> [email protected] lint
> eslint ./src ./scripts --ext .ts,.tsx && prettier --check "{src,scripts}/**/*.{ts,tsx}" && npm run exports

Checking formatting...
All matched files use Prettier code style!

> [email protected] exports
> ts-prune -e
  • Loading branch information
lorenzocorallo committed Feb 16, 2024
1 parent c0fdd7f commit c608476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm test
npm run lint
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"depcheck": "depcheck",
"exports": "ts-prune -e",
"format": "prettier --write \"{src,scripts}/**/*.{ts,tsx}\"",
"lint": "eslint ./src ./scripts --ext .ts,.tsx && prettier --check \"{src,scripts}/**/*.{ts,tsx}\"",
"lint:fix": "eslint ./src ./scripts --fix --ext .ts,.tsx && npm run format",
"lint": "eslint ./src ./scripts --ext .ts,.tsx && prettier --check \"{src,scripts}/**/*.{ts,tsx}\" && npm run exports",
"lint:fix": "eslint ./src ./scripts --fix --ext .ts,.tsx && npm run format && npm run exports",
"start": "vite --open",
"test": "npm run build && npm run lint && npm run exports",
"test": "npm run build && npm run lint",
"preview": "vite preview",
"prepare": "husky"
},
Expand Down

0 comments on commit c608476

Please sign in to comment.