Skip to content

Instantly share code, notes, and snippets.

@ReinisV
Last active December 27, 2020 16:51
Show Gist options
  • Save ReinisV/d8d7e764849b721521729f6c098a5ed0 to your computer and use it in GitHub Desktop.
Save ReinisV/d8d7e764849b721521729f6c098a5ed0 to your computer and use it in GitHub Desktop.
autolinting for VSCode
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