Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
cd ui && npx lint-staged
9 changes: 3 additions & 6 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"lint": "npm run type-check && npm run eslint && npm run stylelint",
"format": "npm run eslint -- --fix",
"format:scss": "npm run stylelint -- --fix",
"precommit": "lint-staged",
"postcommit": "git update-index --again"
"prepare": "cd .. && husky install",
"precommit": "lint-staged"
},
"author": "",
"license": "Apache-2.0",
Expand Down Expand Up @@ -78,10 +78,7 @@
"npm": ">=10.2.4"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"git add"
],
"*.{ts,tsx}": ["eslint --fix"],
"*.scss": [
"stylelint --fix",
"prettier --write"
Expand Down
Loading