Last active
December 27, 2020 16:51
-
-
Save ReinisV/d8d7e764849b721521729f6c098a5ed0 to your computer and use it in GitHub Desktop.
autolinting for VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the following json enables autofixing of linting issues when added to `settings.json` of VSCode: | |
``` | |
{ | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
"eslint.validate": [ | |
{ | |
"language": "vue", | |
"autoFix": true | |
}, | |
{ | |
"language": "html", | |
"autoFix": true | |
}, | |
{ | |
"language": "javascript", | |
"autoFix": true | |
}, | |
{ | |
"language": "javascriptreact", | |
"autoFix": true | |
}, | |
{ | |
"language": "typescript", | |
"autoFix": true | |
}, | |
{ | |
"language": "typescriptreact", | |
"autoFix": true | |
} | |
], | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment