- You'll need to download .eslintrc to your home directory
- Windows
C:\Users\PUT_YOUR_USER_NAME_HERE\.eslintrc.js
- Mac/Linux
~/.eslintrc
(/home/PUT_YOUR_USER_NAME_HERE/.eslintrc.js
)
- Windows
- Install
node
if you haven't already - Install
eslint
globally if you haven't already- run
npm i -g eslint
incmd
,powershell
orbash
- run
- Linting
- Set up an editor integration
- Or lint files via the command line
eslint FILE_I_WANT_TO_LINE.js
Relatively easy to set up linting which prevents some common errors and helps beginner programmers develop some good habits while reducing their cognitive load a bit.