-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
Script-Indent rule inconsistences #441
Comments
There was a fix in eslint that seems like it could be related https://github.com/eslint/eslint/commit/2e68be643178eeb86f2b9f66bc1670b624cb09f2 |
Have the same error. Is only shown when |
I have a similar issue, present in both 4.2.0 and 4.4.0, as follows: Configuration
Vue file
Errors
I would expect to see no errors, and it is definitely inconsistent as there is no error for line 10. |
I'm in the same boat as @patric-eberle: separate lines with |
I also face the similar problem. My config: {
"rules": {
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"vue/script-indent": [
"error",
"tab",
{
"switchCase": 1
}
]
}
} When I start member expression in new line, I get this error. SomePromise
.then(() => {
})
.catch(() => {
}); // This line cause error.
After try to solve this error I get new error from ESLint. SomePromise
.then(() => {
})
.catch(() => {
}); // This line again
🤦🤦🤦 |
I wanted to open a new issue but I guess fix (PR: #503) from @ota-meshi will also resolve my issue as well? Playground reproduction |
@sqal Have your pull request been merged ? I am facing the similar problem :( |
@vannitotaro, that works for the scenario I described, thanks. Sadly I have another scenario, as follows:
Strangely there are no errors when you have another item in the foo array (either at the top or the bottom)
Since I'm not particularly keen on the idea of ignoring all LogicalExpression or ConditionalExpression, or working out how to precisely target each bug scenario with AST as I come across it, I'm going to stick with eslint-disable blocks for now :-( |
Tell us about your environment
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
I would expect this code to validate in regards to script-spacing settings specified in eslint config.
What actually happened? Please include the actual, raw output from ESLint.
Eslint returns an error -
I had been using version 4.2.0 of the plugin without any issues.
The text was updated successfully, but these errors were encountered: