function-paren-newline error when there's a multiline comment before first argument or after last
See original GitHub issueTell us about your environment
- ESLint Version: v6.3.0
- Node Version: NA (using https://eslint.org/demo)
- npm Version: NA (using https://eslint.org/demo)
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
Configuration
{
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module",
"ecmaFeatures": {}
},
"rules": {
"function-paren-newline": 2
},
"env": {}
}
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
function RelativeLink({
a,
b
} /*: {
+a: string,
+b: string,
} */) {
return a + b;
}
RelativeLink('a', 'b')
What did you expect to happen? No errors
What actually happened? Please include the actual, raw output from ESLint.
7:5 - Unexpected newline before ')'. (function-paren-newline)
Are you willing to submit a pull request to fix this bug? No
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
function-paren-newline - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >ESLint simple react App.js Unexpected newline after ...
It seems airbnb uses function-paren-newline: 'multiline' for that rule, which means this should pass:
Read more >ESLint - function-paren-newline The --fix option command line can ...
"multiline-arguments" works like multiline but allows linebreaks inside function parentheses if there is only one parameter/argument.
Read more >PEP-8: clarify if multiline argument list with a closing `)` on a ...
The rationale behind this exception (the closing brace of a multiline construct may be on a line by itself except for ): )...
Read more >How to Write Beautiful Python Code With PEP 8 - Real Python
PEP stands for Python Enhancement Proposal, and there are several of them. ... Here is a block comment explaining the function of a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If this is a bug, Is this case a bug too? - demo
I’m working on it right now.