Inconsistent indentation allowed on chained if-else #6956
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
What version of ESLint are you using?
v3.3.1
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
With the above if-else chain, I have the first else indented too far and we get the correct output:
error Expected indentation of 2 space characters but found 4 indent
But if the first else is correct, I find that all subsequent lines in the if-else chain don't generate errors when their indentation is off.
This generates no output and linting passes.
What did you expect to happen?
I would expect the second input to generate indentation errors:
What actually happened? Please include the actual, raw output from ESLint.
Linting passes and generates no output.
The text was updated successfully, but these errors were encountered: