Skip to content

Commit feac5d2

Browse files
committed
added prettier to pre-commit
1 parent a6e2d45 commit feac5d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
npx lint-staged
55
npx lint-staged
6+
npx lint-staged

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
},
3434
"lint-staged": {
3535
"*.js": "eslint --cache --fix",
36-
"*.{js,css,md}": "prettier --write"
36+
"*.{js,ts,tsx,css,md}": "prettier --write"
3737
}
3838
}

0 commit comments

Comments
 (0)