How to get ESLint to work in Visual Studio 2019 and 2017:
2019 v16 & 2017> = v15.8
In the end, I included instructions on the previous version, but do yourself a favor and upgrade if you want this feature.
From the menu: Tools> Options> Text Editor> Javascript / Typescript> Linting
Check Enable Eslint 
The global-in-visual-studio .eslintrc is located in your root user directory (Windows 10) along with other visual studio configurations. You can still install eslint through npm install eslint -g on your computer. VS will not use this. It comes with a responsive plugin, but you can install other plugins and they will work. You can expand the configs in your project ( eslint ref )
Used by Eslint v4, but acc. in MS documents,
if your project has a local ESLint installation, it will use this version instead
2017 v.15.7
From the menu: Tools β Options β Text Editor β Javascript / Typescript Set Enable Eslint to True (if not already done)
Then from the main menu: Tools β Web Code Analysis β Change ESLint Settings
You will need to save the .eslintrc and your.js files for the rules to take effect. There may be a way to enable intellisense on input, but I did not find it. I found that if I update the rules after Visual Studio has already started drawing, I will have to restart the project for the new rule to take effect. Still awkward, but it's a great way to quickly implement the coding standard, especially when you map it to the format of your text editor and use autoformat for the save plugin, like this
Remember to edit the .eslintrc file in ESLint 2.0.0 format, found here here.
source share