[precommit hook] add dev script (#14890)

* [precommitHook] move to dev script

* [eslint] fix lint error

* [dev/eslint] do simply boolean checks first

* [dev] use shared REPO_ROOT constant

* [dev/File] precompute relative/ext of path

* [dev/eslint] fix relative import

* [dev/eslint] fix typos

* [grunt] remove unused run:eslintStaged config

* [dev/run] only create log if we are going to use it

* [dev/run/isFailError] ensure return value is Boolean

* [dev/precommitHook] use less intermediate vars
This commit is contained in:
Spencer 2017-11-20 14:22:24 -07:00 committed by GitHub
parent cf602c60ff
commit 95329c581f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 337 additions and 159 deletions

View file

@ -0,0 +1,2 @@
require('../src/babel-register');
require('../src/dev/run_precommit_hook');