-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
function body indentation false positive ("indent" rule) #3173
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! |
Multi-line is still a problem with |
Cross-referencing: nodejs/node#2286 |
@feross you can reformat your code slightly to make it perfectly valid with the current version of ESLint (1.1.0): export function create (id, xfilter, rawType,
width=defaultWidth, height=defaultHeight,
footerHeight=defaultFooterHeight,
padding=defaultPadding
) {
// ... function body, indented two spaces
} it actually looks much more readable to me this way :) |
@thealjey that looks too confusing imho, and I think it wouldn't comply with the @gyandeeps I hope this issue is not forgotten. If I recall correctly, it's the last issue blocking us from upgrading 0.24 to 1.x in node. |
@silverwind Whenever we put the |
@silverwind yes, in fact, it does comply with |
With this code:
And this config:
There is an unexpected error:
I expect to be able to use 2 spaces indentation for the function body. The indentation of the function parameters should not effect the body.
The text was updated successfully, but these errors were encountered: