- Install
eslintadd-on for VSCode. VSCode marketplace ⇧ ⌘ P, or for linuxctrl ⇧ P- open command palletePreferences: Open Settings (JSON)orPreferences: Open Workspace Settings (JSON)- Add the following to enable fixing auto fixable problems on file save:
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}You can lint the code (js,jsx,ts,tsx) with:
yarn lintYou can fix the errors with:
yarn lint:fixYou can lint the code (scss,css) with:
yarn lint:stylesYou can fix the errors with:
yarn lint:styles:fix