block-spacing
errors on multi line blocks
#8743
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
documentation
Relates to ESLint's documentation
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:
.eslintrc.js
What did you do? Please include the actual source code causing the issue.
The docs describe the
block-spacing
rule as "Disallow or enforce spaces inside of single line blocks". However, the rule is not limited to single line blocks. It is applied multi line blocks as well.For example, both functions below trigger the
block-spacing
rule.What did you expect to happen?
no errors from
block-spacing
ruleWhat actually happened? Please include the actual, raw output from ESLint.
2:17 error Requires a space after '{' block-spacing
6:18 error Requires a space after '{' block-spacing
✖ 2 problems (2 errors, 0 warnings)
2 errors, 0 warnings potentially fixable with the
--fix
option.The text was updated successfully, but these errors were encountered: