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 .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2ea7f-2bc45.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2ea7f-2bc45.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?