Skip to content

Commit

Permalink
Add .lingstagedrc
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Jan 29, 2024
1 parent b6ccfcd commit 467c2f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions ui/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npx lint-staged ui/
4 changes: 4 additions & 0 deletions ui/.lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,jsx,ts,tsx}": "eslint --fix",
"*": "prettier --ignore-unknown --write"
}
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"format": "prettier . --write",
"codegen": "graphql-codegen",
"analyze": "ANALYZE=true next build",
"prepare": "cd .. && husky install ui/.husky"
"prepare": "cd .. && husky ui/.husky"
},
"dependencies": {
"@emotion/cache": "^11.11.0",
Expand Down

0 comments on commit 467c2f3

Please sign in to comment.