Bug 1283886 - Allow template literals. r=tromey draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 01 Jul 2016 11:47:28 -0500
changeset 383165 6cdebf37e70cc7dd18e56ee9cc7797ae80a607ed
parent 382880 83ff023f5596ea9f0575ed06374ff96c53eb93e9
child 524414 4f24ee070a300a76d24c4a2c372f8fe8e7ed1e71
push id21958
push userbmo:jryans@gmail.com
push dateFri, 01 Jul 2016 16:47:48 +0000
reviewerstromey
bugs1283886
milestone50.0a1
Bug 1283886 - Allow template literals. r=tromey MozReview-Commit-ID: DPHZjMLs4ED
devtools/.eslintrc
--- a/devtools/.eslintrc
+++ b/devtools/.eslintrc
@@ -328,18 +328,20 @@
     // like something to check at code review time.
     "object-shorthand": 0,
     // Allow more than one variable declaration per function.
     "one-var": 0,
     // Disallow padding within blocks.
     "padded-blocks": [2, "never"],
     // Don't require quotes around object literal property names.
     "quote-props": 0,
-    // Double quotes should be used.
-    "quotes": [2, "double", "avoid-escape"],
+    // Double quotes should be used.  Other quote characters can be used around strings
+    // with embedded double quotes to avoid escaping them.  Template literals are allowed
+    // mainly for building multi-line messages where only some lines use substitution.
+    "quotes": [2, "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
     // Require use of the second argument for parseInt().
     "radix": 2,
     // Always require use of semicolons wherever they are valid.
     "semi": [2, "always"],
     // Enforce spacing after semicolons.
     "semi-spacing": [2, {"before": false, "after": true}],
     // Don't require to sort variables within the same declaration block.
     // Anyway, one-var is disabled.