Bug 1271709 - fix eslint-plugin-mozilla .eslintrc; r=pbro
testing/eslint-plugin-mozilla/lib/rules/.eslintrc used the obsolete
"keyword-spacing" rule. This patch fixes that and changes the top-level
.eslintignore so that local eslint rules are now checked.
MozReview-Commit-ID: KjVLasvPKh7
--- a/.eslintignore
+++ b/.eslintignore
@@ -35,16 +35,18 @@ netwerk/**
nsprpub/**
other-licenses/**
parser/**
probes/**
python/**
rdf/**
startupcache/**
testing/**
+!testing/eslint-plugin-mozilla/
+testing/eslint-plugin-mozilla/node_modules/**
tools/**
uriloader/**
view/**
widget/**
xpcom/**
xpfe/**
xulrunner/**
--- a/testing/eslint-plugin-mozilla/lib/rules/.eslintrc
+++ b/testing/eslint-plugin-mozilla/lib/rules/.eslintrc
@@ -27,17 +27,17 @@
"no-undef-init": 2,
"no-unexpected-multiline": 2,
"object-curly-spacing": 0,
"one-var": [2, "never"],
"operator-linebreak": [2, "after"],
"semi": [2, "always"],
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
- "space-before-keywords": 2,
+ "keyword-spacing": 2,
"strict": [2, "global"],
},
// Globals accessible within node modules.
"globals": {
"DTRACE_HTTP_CLIENT_REQUEST": true,
"DTRACE_HTTP_CLIENT_RESPONSE": true,
"DTRACE_HTTP_SERVER_REQUEST": true,