- Run
yarn lint
to check for errors - Run
yarn lint:fix
to check and autofix errors
- Install the ESLint extension
- Add this to your settings, so ESLint runs automatically:
"eslint.autoFixOnSave": true,
"eslint.validate": [
{
"language": "javascript",
"autoFix": true
},
{
"language": "javascriptreact",
"autoFix": true
},
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
]