Skip to content

Commit

Permalink
Enforce formatting using Prettier and Husky+lint-staged (#866)
Browse files Browse the repository at this point in the history
* Enforce formatting using Prettier and Husky+lint-staged

* Make hook executable
  • Loading branch information
queengooborg authored Sep 1, 2022
1 parent ae46756 commit fff4f85
Show file tree
Hide file tree
Showing 4 changed files with 936 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

node node_modules/.bin/lint-staged
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

{
"*": "prettier --ignore-unknown --write",
"*.{js,jsx,tsx}": "eslint --fix"
}
Loading

0 comments on commit fff4f85

Please sign in to comment.