linter.verifyAndFix incorrectly requires third argument #8805
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
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
N/A
Please show your full configuration:
N/A
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
I expected an object containing fix info to be returned:
What actually happened? Please include the actual, raw output from ESLint.
An error was thrown:
It seems like the third "options" argument for
linter.verifyAndFix
is accidentally required. It's optional forlinter.verify
, so it should also be optional forlinter.verifyAndFix
.As a workaround, one can use:
The text was updated successfully, but these errors were encountered: