Skip to content

Commit

Permalink
add pre-commit hook with husky
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Nov 20, 2024
1 parent 30325c3 commit a984538
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx prettier --write .
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
binary/bin
binary/build
binary/out
binary/tmp
core/.continue-test
docs/.docusaurus
extensions/.continue-debug
extensions/vscode/continue_rc_schema.json
extensions/vscode/.vscode-test
extensions/vscode/bin
extensions/vscode/build
extensions/vscode/out
gui/dist
**/.continueignore
CHANGELOG.md
**/continue_tutorial.py
**/node_modules
16 changes: 16 additions & 0 deletions package-lock.json

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

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"devDependencies": {
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"@typescript-eslint/parser": "^7.8.0",
"eslint-plugin-import": "^2.29.1"
"eslint-plugin-import": "^2.29.1",
"husky": "^9.1.7",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8"
},
"scripts": {
"prepare": "husky"
}
}

0 comments on commit a984538

Please sign in to comment.