Bug 1232743 - Ignore max-len ESLint rule for URLs and loader lines. r=pbrosset
authorLin Clark <lclark@mozilla.com>
Tue, 15 Dec 2015 11:03:00 +0100
changeset 299987 caa21d8e9e04b25a39df17139abf85366fd1cdf5
parent 299986 4228fd8ef72fd99cafe4826473593b4ffb81b273
child 299988 f28fd9bd845c35867d9089ea73be03d10cf68cd8
push id8978
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 14:05:32 +0000
treeherdermozilla-aurora@b9a803752a2c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbrosset
bugs1232743
milestone46.0a1
Bug 1232743 - Ignore max-len ESLint rule for URLs and loader lines. r=pbrosset
devtools/.eslintrc
--- a/devtools/.eslintrc
+++ b/devtools/.eslintrc
@@ -89,17 +89,17 @@
     // Enforces spacing between keys and values in object literal properties.
     "key-spacing": [1, {"beforeColon": false, "afterColon": true}],
     // Allow mixed 'LF' and 'CRLF' as linebreaks.
     "linebreak-style": 0,
     // Don't enforce the maximum depth that blocks can be nested. The complexity
     // rule is a better rule to check this.
     "max-depth": 0,
     // Maximum length of a line.
-    "max-len": [1, 80],
+    "max-len": [1, 80, 2, {"ignoreUrls": true, "ignorePattern": "^\\s*loader\\.lazy"}],
     // Maximum depth callbacks can be nested.
     "max-nested-callbacks": [2, 3],
     // Don't limit the number of parameters that can be used in a function.
     "max-params": 0,
     // Don't limit the maximum number of statement allowed in a function. We
     // already have the complexity rule that's a better measurement.
     "max-statements": 0,
     // Require a capital letter for constructors, only check if all new