-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools,test: make argument linting more stringent #6720
Conversation
/cc @silverwind |
No accompaning rule change? Seems a bit pointless if you don't enforce the style. Note that I'm not really a fan of the alignment at |
@silverwind There is a change to |
Ah, totally missed that. LGTM. |
@@ -32,8 +32,7 @@ function checkArgumentAlignment(context, node) { | |||
'ArrowFunctionExpression', | |||
'CallExpression', | |||
'FunctionExpression', | |||
'ObjectExpression', | |||
'TemplateLiteral' | |||
'ObjectExpression' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nittiest of nitpicks but if you leave the comma, the diff is one line shorter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a supporter of the final-line dangling-comma but don't see it too much in the code base here. Happy to add an instance! And...
...done!
LGTM |
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.)
Only CI failure is an unrelated known-flaky (with a possible fix pending in another PR, woot). |
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: nodejs#6720 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
Landed in d73e189 |
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: #6720 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
Checklist
Affected core subsystem(s)
test tools
Description of change
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.)