-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbountySomeone has posted a bounty for this issue on BountySourceSomeone has posted a bounty for this issue on BountySourceruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
I am wanting a (stylistic) rule where this would be disallowed:
var x = 2;
But this is fine:
var x;
x = 2;
In other words, variable declarations and variable assignments have to be broken into 2 pieces.
Is there already such a rule and I missed it?
Thanks!
Did you help close this issue? Go claim the $50 bounty on Bountysource.
Metadata
Metadata
Assignees
Labels
acceptedThere is consensus among the team that this change meets the criteria for inclusionThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionbountySomeone has posted a bounty for this issue on BountySourceSomeone has posted a bounty for this issue on BountySourceruleRelates to ESLint's core rulesRelates to ESLint's core rules