Writing JS in Vim

A few notes on setting up Vim

Linting in Vim

Installing ESLint into a project through Yarn (or npm)
Errors appear as I type. At the end, they all end up in the Location List, making them easy to jump between.

Auto-Format through ESLint and Prettier

Installing Prettier, and the required ESLint addons
Configures ESLint to report (and fix) Prettier errors
Add to your Vim config to allow Ale to fix ESLint errors
Creates a shortcut for quickly fixing the current file
Running ALEFix fixes all of the formatting errors automatically. The unused variable is still warned about.


Flow provides suggestions on methods and properties as I type



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