Perfectionist

Integrations

The best way to use ESLint Plugin Perfectionist is to configure it to fix errors on save in your code editor. This ensures your code stays clean and organized automatically.

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:

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:

{
  "editor.codeActionsOnSave": {
    "source.fixAll": true
  }
}

Table of Contents