Fix space-unary-ops rule for keywords like `yield`. r=me (no bug) DONTBUILD
authorKris Maglione <maglione.k@gmail.com>
Tue, 04 Oct 2016 22:19:33 +0100
changeset 316410 ede6abc13627a29a9e66952204f9bddb7a4cbc1a
parent 316409 b05f555321b78550fbca22685e5e89643af165d5
child 316411 c8b204bac7ab87eea409e454d011554af415eb97
push id82445
push usermaglione.k@gmail.com
push dateTue, 04 Oct 2016 21:51:34 +0000
treeherdermozilla-inbound@ede6abc13627 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
milestone52.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
Fix space-unary-ops rule for keywords like `yield`. r=me (no bug) DONTBUILD MozReview-Commit-ID: 8LHjOTKGis0
toolkit/components/extensions/.eslintrc
--- a/toolkit/components/extensions/.eslintrc
+++ b/toolkit/components/extensions/.eslintrc
@@ -221,17 +221,17 @@
 
     // Never use spaces before function parentheses
     "space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
 
     // Require spaces around operators, except for a|0.
     "space-infix-ops": [2, {"int32Hint": true}],
 
     // ++ and -- should not need spacing
-    "space-unary-ops": [1, {"nonwords": false}],
+    "space-unary-ops": [1, {"nonwords": false, "words": true, "overrides": {"typeof": false}}],
 
     // No comparisons to NaN
     "use-isnan": 2,
 
     // Only check typeof against valid results
     "valid-typeof": 2,
 
     // Disallow using variables outside the blocks they are defined (especially