-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Rule: newline-per-var #4537
Comments
@gajus Thanks for the issue! If you're reporting a bug, please be sure to include:
Requesting a new rule? Please see Proposing a New Rule for instructions. |
Possible duplicate #1622 |
@gyandeeps it isn't. That rule considers the following example valid. var a = 42, b = 40, c,
d = 41; |
Read the discussion at the bottom. We did talk about a lot of things. |
let date, time, url;
let {foo, bar} = test; I wouldn't consider those statements the same. Should at least be separate options in the rule for those. |
Agreed. The first one is the most important for me. The second one is open to debate.
|
@eslint/eslint-team Thoughts? |
We already have too much on the backlog, so closing. Feel free to create a custom rule for this and if we get further requests in the future we can reconsider. |
This rule should warn when multiple variables are declared on the same line.
The following patterns are considered problems:
The following patterns are not considered problems:
The text was updated successfully, but these errors were encountered: