RuleTester should report syntax error of fixed code #11615
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
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
The version of ESLint you are using.
The problem you want to solve.
I found
RuleTester
doesn't report any errors even if autofix makes a syntax error in #11579.I expected above test results to be "A fatal parsing error occurred in autofix: Parsing error: ..." rather than "Output is incorrect".
Your take on the correct solution to problem.
RuleTester
makes failing if autofix made a syntax error.Are you willing to submit a pull request to implement this change?
Yes.
The text was updated successfully, but these errors were encountered: