Autosave enable in VS Code
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
1 -Open File > Preferences > Settings
2- Enter "Code Action on Save" in the search bar,
3- You will get the first selection, Saying "Edit in settings.json", and click on it.
4- Add the below code at end of the file
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript"],