template-curly-spacing fix should not remove comments inside the curly braces. #12744
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
needs design
Important details about this change need to be discussed
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:
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.
Run eslint with
--fix
option.What did you expect to happen?
It should not remove comments(
/*comment*/
) even it has an error.What actually happened? Please include the actual, raw output from ESLint.
It removes comments inside the curly braces.
{
,}
. Here is a demoAre you willing to submit a pull request to fix this bug?
Yes, If it is a bug.
The text was updated successfully, but these errors were encountered: