Browse Source

tools,test: make argument linting more stringent

The custom linting rule for argument alignment in multi-line function
calls previously ignored template strings in an effort to avoid false
positives. This isn't really necessary. Enforce for template strings and
adjust whitespace in three tests to abide. (Insert "The test abides"
joke of your choosing here.)

PR-URL: https://github.com/nodejs/node/pull/6720
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
v7.x
Rich Trott 9 years ago
parent
commit
d73e189c26
  1. 1
      tools/eslint-rules/align-function-arguments.js

1
tools/eslint-rules/align-function-arguments.js

@ -33,7 +33,6 @@ function checkArgumentAlignment(context, node) {
'CallExpression', 'CallExpression',
'FunctionExpression', 'FunctionExpression',
'ObjectExpression', 'ObjectExpression',
'TemplateLiteral'
]; ];
const args = node.arguments; const args = node.arguments;

Loading…
Cancel
Save