Integrations
You can set up the ability to fix linting problems when saving in your editor.
📟 JetBrains IDE
Open Settings (⌘ + ,), then select Languages & Frameworks / Code Quality Tools / ESLint. Check the box next to "Run eslint --fix on save".
📟 Vim
If you are using ALE Vim plugin add the following code to your .vimrc
:
vim
let g:ale_fix_on_save = 1
📟 Visual Studio Code
If you are using ESLint extension for VS Code open your settings.json
file:
Press ⌘ + Shift + P and type "Open User Settings (JSON)".
Then add the following code to your settings.json
:
json
{
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}