Even faster code formatting using ESLint

How

IntelliJ

  1. Install File Watcher plugin: Preferences → Plugins → Install JetBrains plugin → File Watchers
  2. Add new File Watcher: Preferences → File Watchers → Add → Custom and fill the config as follows:

Visual Studio Code

  1. Install ESLint extension: View → Extensions → find and install ESLint.
  2. Reload the editor.
  3. Enable auto fix: View → Command Pallete → Open Workspace Settings → add: "eslint.autoFixOnSave": true line to the settings

Sublime Text 3

  1. Install https://packagecontrol.io/installation
  2. Install https://github.com/TheSavior/ESLint-Formatter
  3. And then allow to auto fix on save: Preferences → Package Settings → ESLint Formatter → Settings and add "format_on_save": true to the settings file:
  1. Install linter-eslint plugin: Preferences → Install → type and install linter-eslint
  2. Install all dependencies (and restart the editor couple of times during installation)
  3. Enable auto fix on save: Preferences → Packages → linter-eslint and check Fix errors on save checkbox:

The End

--

--

--

Software engineer. https://netczuk.pl

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Elastic Watcher 101!

My Review on AWS Lake Formation

How To Optimize Cloud Firestore Usage

Why Data Governance has to be Flexible

Special AMA Recap @dotmoovs

torch正态分布理解

Heroku — Traditional WAR vs Docker Deployment Analysis

Earn Money Online | Online Jobs At Home | Online Earning | Work From Home | Paytm Earning App 2021…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tomasz Netczuk

Tomasz Netczuk

Software engineer. https://netczuk.pl

More from Medium

How to create a Dynamic Library in C

Middlewares

Why should you use GIT ?

You don’t need to pull before rebase to an origin branch.