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

@@ -35,6 +35,7 @@
"eslint": "^5.3.0",
"eslint-config-babel": "^7.0.2",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-local-rules": "0.1.0",
"eslint-plugin-prettier": "^2.6.2",
"flow-bin": "^0.80.0",
"graceful-fs": "^4.1.11",
@@ -77,7 +78,7 @@
},
"lint-staged": {
"*.js": [
"eslint --format=codeframe --rulesdir='./scripts/eslint_rules'"
"eslint --format=codeframe"
]
},
"jest": {