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
ignore end of function, or add parameter for ignore in rule newline-after-var #3682
Comments
Thanks for the issue! We get a lot of issues, so this message is automatically posted to each one to help you check that you've included all of the information we need to help you. Reporting a bug? Please be sure to include:
Requesting a new rule? Please be sure to include:
Requesting a feature? Please be sure to include:
Including this information in your issue helps us to triage it and get you a response as quickly as possible. Thanks! |
Could you provide details requested by the bot? |
'use strict';
function example() {
var anonymous = function () {
console.log('anonymous function expression');
};
}
example();
|
What line and column does the error message report? |
'use strict';
function example() {
var anonymous = function () {
console.log('anonymous function expression');
}; // On this line
}
example(); |
This sounds more like an enhancement? |
Agree. That's an enhancement. I think it makes sense to add. |
What would the option be called? |
I'm not sure this should be an option. I think it should just be an enhancement to an existing functionality. |
Unless there is a reason someone would want a blank line like this, and I can't imagine why anyone would, I think it would be best to avoid adding an option and just make it default behavior. |
I'll give it a try |
@nzakas Are you ok with enabling this without an option? |
Fine by me |
Update: Ignore end of function in newline-after-var (fixes #3682)
The text was updated successfully, but these errors were encountered: