Editors
skuba uses regular ESLint and Prettier configurations that should be compatible with most editor integrations.
Visual Studio Code
-
Install the following community extensions:
-
⇧ ⌘ P › Preferences: Open Settings (JSON)
-
Add the following settings:
{ "[typescript]": { "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode" } }
Webstorm
- Go to Settings > Languages & Frameworks > JavaScript > Code Quality Tools > ESLint and tick
Automatic ESLint configuration
andRun eslint --fix on save
. - Go to Settings > Langauges & Frameworks > JavaScript > Prettier and tick
On save
.