Browse Source

remove flow in pre-commit hook

dev
Evan You 8 years ago
parent
commit
68e560af24
  1. 2
      .github/CONTRIBUTING.md
  2. 2
      build/git-hooks/pre-commit

2
.github/CONTRIBUTING.md

@ -65,7 +65,7 @@ If you are on a Unix-like system, optionally install the Git pre-commit hook wit
$ npm run install:hooks
```
This will run Flow and ESLint on changed files before each commit.
This will run ESLint on changed files before each commit.
### Commonly used NPM scripts

2
build/git-hooks/pre-commit

@ -3,5 +3,5 @@
files_to_lint=$(git diff --cached --name-only --diff-filter=ACM | grep '\.js$')
if [ -n "$files_to_lint" ]; then
flow && NODE_ENV=production eslint $files_to_lint
NODE_ENV=production eslint $files_to_lint
fi

Loading…
Cancel
Save