Use eslint-local-rules plugin

This allows to avoid having errors in editors that
supports eslint

cf https://github.com/eslint/eslint/issues/8769
This commit is contained in:
Frederic Germain
2018-07-08 17:32:08 +02:00
committed by Logan Smyth
parent 1e1a89ca70
commit 45c28fa785
5 changed files with 20 additions and 6 deletions

View File

@@ -47,10 +47,10 @@ flow:
./node_modules/.bin/flow check --strip-root
lint:
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe --rulesdir="./scripts/eslint_rules"
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe
fix:
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe --fix --rulesdir="./scripts/eslint_rules"
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe --fix
clean: test-clean
rm -rf packages/babel-polyfill/browser*