Bug 1271709 - fix eslint-plugin-mozilla .eslintrc; r=pbro
authorTom Tromey <tom@tromey.com>
Tue, 10 May 2016 11:03:54 -0600
changeset 336771 34e7941368242f1e70757843cd7c195c9a9b7e98
parent 336770 d2bd7cfc6d8c0aaf1dab44de0e6b8ad5aff13f4f
child 336772 c697aa342211ec2fa93980cfdb862a84e4c9af97
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1271709
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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,