Javascript eslint
From John Freier
Revision as of 10:43, 11 July 2016 by Jfreier (Talk | contribs) (Created page with " == Install == I installed ESLint globally npm install -g eslint After install I created a global config file with all of my custom configs. eslint --init This comman...")
Install
I installed ESLint globally
npm install -g eslint
After install I created a global config file with all of my custom configs.
eslint --init
This command will walk you through creating custom formating or using a standard formatting template.
I then took the result files and copied it to my home directory to use with a bunch of projects.
Install - ATOM
This is how to install ESLint to work in the ATOM editor. After installing ESLint.
apm install linter-eslint
This installs the ATOM plugin to start using ESLint with your JavaScript files. There was still some configurations I need to perform.
- I pointed to a global copy of my .eslintrc.js files /home/user/.eslintrc.js
- I turned off "Disable if config not in project folder."
- I checked "Use global ESLint install"