mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 11:05:39 -04:00
[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:
parent
cf602c60ff
commit
95329c581f
38 changed files with 337 additions and 159 deletions
2
scripts/precommit_hook.js
Normal file
2
scripts/precommit_hook.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
require('../src/babel-register');
|
||||
require('../src/dev/run_precommit_hook');
|
Loading…
Add table
Add a link
Reference in a new issue