Change in behavior of 'indent' rule in 4.18.0 #9995
Closed
Labels
Comments
Thanks for the report, I can reproduce this issue. |
not-an-aardvark
added a commit
that referenced
this issue
Mar 3, 2018
This updates the `indent` rule to ensure that the tokens in a non-ignored node are always indented at least as much as the first token of the node. This fixes an issue where some tokens would not have enough indentation if their node's listener did not explicitly give them an offset.
This was referenced Mar 16, 2018
This was referenced Mar 16, 2018
This was referenced Mar 16, 2018
This was referenced Mar 22, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default with
ecmaVersion: 8
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
This was valid in 4.17.0:
but 4.18.0 wants it formatted like:
This only happens if there's a
!
in front of the[].some
bit.What did you expect to happen?
Same behavior as 4.17.0, per above.
What actually happened? Please include the actual, raw output from ESLint.
The text was updated successfully, but these errors were encountered: