From c6084767b92fbb2d732520dbd0c58a97345c9bf6 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Fri, 16 Feb 2024 14:14:07 +0100 Subject: [PATCH] ci: change pre-commit hook to > the-tol-project@1.2.0 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! > the-tol-project@1.2.0 exports > ts-prune -e --- .husky/pre-commit | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 72c4429..3867a0f 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npm test +npm run lint diff --git a/package.json b/package.json index cc02124..e0c98aa 100644 --- a/package.json +++ b/package.json @@ -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" },