-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dx: replace husky with lefthook (#128)
- Loading branch information
1 parent
63b31c1
commit bd7c34b
Showing
6 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pre-commit: | ||
parallel: true | ||
commands: | ||
lint: | ||
glob: "*.{js,jsx,ts,tsx}" | ||
run: bun lint {staged_files} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,6 @@ | |
"dev": "vite", | ||
"serve": "vite prefix", | ||
"lint": "eslint --cache --cache-location node_modules/.eslintcache", | ||
"prepare": "husky", | ||
"pre-commit": "bun lint", | ||
"test": "vitest run" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
@@ -33,8 +31,8 @@ | |
"eslint-plugin-solid": "ESLint rules specific to solid", | ||
"eslint-plugin-tailwindcss": "ESLint rules specific to tailwind", | ||
"globals": "defines global identifiers for ESLint", | ||
"husky": "git hooks tool, used here for pre-commit linting", | ||
"jsdom": "js implementation of the dom (used in testing env which we don't really make use of)", | ||
"lefthook": "git hooks manager for pre-commit", | ||
"playwright": "take screenshots to post on PRs", | ||
"postcss": "transforms css with js; autoprefixer and tailwind get plugged into this", | ||
"solid-devtools": "visualize reactivity graph (consider if necessary)", | ||
|
@@ -60,8 +58,8 @@ | |
"eslint-plugin-solid": "^0.14.5", | ||
"eslint-plugin-tailwindcss": "^3.17.5", | ||
"globals": "^15.14.0", | ||
"husky": "^9.1.7", | ||
"jsdom": "^26.0.0", | ||
"lefthook": "^1.10.3", | ||
"playwright": "^1.49.1", | ||
"postcss": "^8.4.49", | ||
"solid-devtools": "^0.33.0", | ||
|