How do I get vscode to format code according to the eslint specification?

question: how do I get vscode to format code according to the eslint specification? Now the saved code always reports an error.


prettier

search in the market. Configure Eslint Integration in the settings after installation.


upstairs prettier is good, but prettier can configure too few items, unless your eslint settings are exactly the same as prettier , prettier can only help you correct part of the error report.
of course, if you want to avoid reporting errors at all, the best way is to change your irregular writing / delete `eslint .

Menu