Added Husky & Prettier
This commit is contained in:
parent
6265986a8b
commit
a73c024e0a
2 changed files with 8 additions and 0 deletions
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
||||
|
|
@ -74,5 +74,9 @@
|
|||
"^@/(.*)$": "<rootDir>/$1",
|
||||
"^@$": "<rootDir>/main.ts"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx}": "eslint --fix",
|
||||
"*.{js,jsx,ts,tsx,css,md}": "prettier --write"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue