Bug 1248855 - [webext] Follow-up: Add matching "array-bracket-spacing" rule. r=me
authorKris Maglione <maglione.k@gmail.com>
Tue, 01 Mar 2016 13:49:48 -0800
changeset 324559 9dce8ca22cd7cc386e68f2ea49779d28a01e1a74
parent 324558 89460f01ea5adf62bbef6902dc1cac3095b9a497
child 324560 18832ab14128eaa68b56fc85f2b5284d909982fa
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1248855
milestone47.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 1248855 - [webext] Follow-up: Add matching "array-bracket-spacing" rule. r=me MozReview-Commit-ID: HALx5dbLxpj
toolkit/components/extensions/.eslintrc
--- a/toolkit/components/extensions/.eslintrc
+++ b/toolkit/components/extensions/.eslintrc
@@ -38,19 +38,25 @@
     // "arrow-body-style": [2, "as-needed"],
 
     // Require spacing around =>
     "arrow-spacing": 2,
 
     // Always require spacing around a single line block
     "block-spacing": 1,
 
+    // Forbid spaces inside the square brackets of array literals.
+    "array-bracket-spacing": [2, "never"],
+
     // Forbid spaces inside the curly brackets of object literals.
     "object-curly-spacing": [2, "never"],
 
+    // No space padding in parentheses
+    "space-in-parens": [2, "never"],
+
     // Enforce one true brace style (opening brace on the same line) and avoid
     // start and end braces on the same line.
     "brace-style": [2, "1tbs", {"allowSingleLine": true}],
 
     // No space before always a space after a comma
     "comma-spacing": [2, {"before": false, "after": true}],
 
     // Commas at the end of the line not the start
@@ -198,23 +204,19 @@
     "space-before-blocks": 2,
 
     // Never use spaces before function parentheses
     "space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
 
     // Require spaces before finally, catch, etc.
     "space-before-keywords": [2, "always"],
 
-    // No space padding in parentheses
-    "space-in-parens": [2, "never"],
-
     // Require spaces around operators, except for a|0.
     "space-infix-ops": [2, {"int32Hint": true}],
 
-
     // Require spaces after return, throw and case
     "space-return-throw-case": 2,
 
     // ++ and -- should not need spacing
     "space-unary-ops": [1, {"nonwords": false}],
 
     // No comparisons to NaN
     "use-isnan": 2,