Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: ignore template literals for line length
The line length limitation applied by linting is intended to improve
readability. Unfortunately with template literals, practices used to get
around it can inhibit readability. For example:

    return `The "${name}" array must have a length of ${
           length}. Received length ${actual}`;

Configure the linter to ignore line length limitations for template
literals.
  • Loading branch information
Trott committed Jul 11, 2017
commit b859cbd0e151e85c41c9b5ea838708aa13ef9b3d
15 changes: 8 additions & 7 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,18 @@ rules:
# ObjectExpression: first,
# SwitchCase: 1}]
indent-legacy: [error, 2, {ArrayExpression: first,
CallExpression: {arguments: first},
MemberExpression: 1,
ObjectExpression: first,
SwitchCase: 1}]
CallExpression: {arguments: first},
MemberExpression: 1,
ObjectExpression: first,
SwitchCase: 1}]
key-spacing: [error, {mode: minimum}]
keyword-spacing: error
linebreak-style: [error, unix]
max-len: [error, {code: 80,
ignoreRegExpLiterals: true,
ignoreUrls: true,
tabWidth: 2}]
ignoreRegExpLiterals: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
tabWidth: 2}]
new-parens: error
no-mixed-spaces-and-tabs: error
no-multiple-empty-lines: [error, {max: 2, maxEOF: 0, maxBOF: 0}]
Expand Down