Bug 1232743 - Ignore max-len ESLint rule for URLs and loader lines. r=pbrosset

This commit is contained in:
Lin Clark 2015-12-15 11:03:00 +01:00
parent 60a27529fe
commit 1565a4c3c1

View File

@ -94,7 +94,7 @@
// rule is a better rule to check this. // rule is a better rule to check this.
"max-depth": 0, "max-depth": 0,
// Maximum length of a line. // 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. // Maximum depth callbacks can be nested.
"max-nested-callbacks": [2, 3], "max-nested-callbacks": [2, 3],
// Don't limit the number of parameters that can be used in a function. // Don't limit the number of parameters that can be used in a function.