Bug 1271709 - fix eslint-plugin-mozilla .eslintrc; r=pbro draft
authorTom Tromey <tom@tromey.com>
Tue, 10 May 2016 11:03:54 -0600
changeset 366893 aba2679f26e48932295b737e11a6370076a249cc
parent 366801 1f1a8b96d5167153d1f750439ba6a1063155a4bc
child 520871 60c922e1617ff9d7c071ef0b22a0f7d9c8f53a79
push id18089
push userbmo:ttromey@mozilla.com
push dateFri, 13 May 2016 15:59:05 +0000
reviewerspbro
bugs1271709
milestone49.0a1
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
.eslintignore
testing/eslint-plugin-mozilla/lib/rules/.eslintrc
--- 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,