Skip to content

Commit

Permalink
Add husky pre-commit hooks for prettier and codespell (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyskoedijk authored Nov 18, 2024
1 parent f47a8c3 commit 670973e
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pretty-quick --staged
codespell
346 changes: 345 additions & 1 deletion package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
"version": "0.0.0",
"private": true,
"scripts": {
"prepare": "husky",
"postinstall": "npm --prefix extension install",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"devDependencies": {
"husky": "^9.1.6",
"prettier": "3.3.3",
"prettier-plugin-organize-imports": "4.1.0"
"prettier-plugin-organize-imports": "4.1.0",
"pretty-quick": "^4.0.0"
}
}

0 comments on commit 670973e

Please sign in to comment.