Using "first" for indent can result in message about "NaN spaces" with nested arrays #7727
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
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
config file is empty
What did you do? Please include the actual source code causing the issue.
Running command:
eslint --rule 'indent: [2, 2, {ArrayExpression: first}]' test.js
with contents of
test.js
as follows:What did you expect to happen?
Either no error or else expected indentation of some positive integer.
What actually happened? Please include the actual, raw output from ESLint.
2:3 error Expected indentation of NaN spaces but found 2 indent
5:3 error Expected indentation of NaN spaces but found 2 indent
The text was updated successfully, but these errors were encountered: