All the above helps us to be consistent in semicolons, quotes & code formatting etc. In this blog post i will be showing you how you can setup ESLint with visual studio code which is my favorite code editor.
Install ESLint global
npm install -g eslint
Download ESLint extension
After downloading we need to initialize the ESLint.
Initialize ESLint in project
That’s all folks, now your project is setup with ESLint, from now on it will be very easy to catch lint errors and fix them even if you had missed it. Let’s see ESLint in action.
And if you want to explore more on ESLint you can explore it on the website http://eslint.org/