Bug 1283886 - Allow template literals. r=tromey
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 01 Jul 2016 11:47:28 -0500
changeset 343399 20d8f274cc880211d59708b569358cc70134aff5
parent 343398 9b5be9da64bafc31baba3bc81c5d42785081e3d9
child 343400 9b0be364ac5445e5712e79651720ad70269ca9b9
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstromey
bugs1283886
milestone50.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 1283886 - Allow template literals. r=tromey MozReview-Commit-ID: DPHZjMLs4ED
devtools/.eslintrc
--- a/devtools/.eslintrc
+++ b/devtools/.eslintrc
@@ -326,18 +326,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.