Skip to content

Commit

Permalink
remove husky/pre-commit hooks
Browse files Browse the repository at this point in the history
We now run checks in CI, so let's keep commits fast locally. This patch removes husky and the precommit hook. We also add a prettier check so unformatted text will fail in CI.
  • Loading branch information
threepointone committed Jul 3, 2024
1 parent c5d5e66 commit 91aeb06
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 275 deletions.
10 changes: 0 additions & 10 deletions .husky/pre-commit

This file was deleted.

22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sideEffects": false,
"scripts": {
"build": "remix build",
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
"lint": "prettier --check . && eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
"dev": "remix dev --manual -c \"npm start\"",
"start": "wrangler dev ./build/index.js",
"prebuild": "npm run clean",
Expand All @@ -16,7 +16,6 @@
"prettier": "prettier -w --ignore-path .gitignore .",
"typecheck": "tsc --noEmit --skipLibCheck",
"typecheck:watch": "npm run typecheck -- --watch",
"prepare": "husky install",
"test": "vitest",
"test:ci": "vitest --watch false",
"check": "npm run lint && npm run typecheck && npm run test:ci"
Expand Down Expand Up @@ -62,7 +61,6 @@
"del-cli": "^5.1.0",
"eslint": "^8.56.0",
"git-format-staged": "^3.1.1",
"husky": "^9.0.11",
"msw": "^2.3.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.2",
Expand Down
Loading

0 comments on commit 91aeb06

Please sign in to comment.