Bug 1231661 - Relax no-multi-spaces Eslint rule. r=Mossop
authorMarco Bonardo <mbonardo@mozilla.com>
Thu, 10 Dec 2015 10:15:04 -0500
changeset 312041 11405af50b40d89422127e94db681710a1929b4a
parent 312040 6141657e33996c6cf316596420a599e3d5945325
child 312042 50a0251369dfdc40f5e1a9a77684b77add683117
push id1040
push userraliiev@mozilla.com
push dateMon, 29 Feb 2016 17:11:22 +0000
treeherdermozilla-release@8c3167321162 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs1231661
milestone45.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 1231661 - Relax no-multi-spaces Eslint rule. r=Mossop
toolkit/.eslintrc
--- a/toolkit/.eslintrc
+++ b/toolkit/.eslintrc
@@ -96,17 +96,17 @@
 
     // No single if block inside an else block
     // "no-lonely-if": 2,
 
     // No mixing spaces and tabs in indent
     // "no-mixed-spaces-and-tabs": [2, "smart-tabs"],
 
     // No unnecessary spacing
-    // "no-multi-spaces": 2,
+    // no-multi-spaces: [2, { exceptions: { "AssignmentExpression": true, "VariableDeclarator": true, "ArrayExpression": true } }],
 
     // No reassigning native JS objects
     // "no-native-reassign": 2,
 
     // No (!foo in bar)
     // "no-negated-in-lhs": 2,
 
     // Nested ternary statements are confusing