Skip to content

Commit

Permalink
Setup pre-commit git hooks (facebook#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
prontiol authored and acywatson committed Apr 9, 2022
1 parent 0a79385 commit 2de5b34
Show file tree
Hide file tree
Showing 5 changed files with 512 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
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"

lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'*.js': ['flow', 'prettier --write'],
};
Loading

0 comments on commit 2de5b34

Please sign in to comment.