Home

Published

- 1 min read

running eslint

img of running eslint

The solution for this is noted below

running eslint

Solution

   #install eslint in project
npm install eslint --save-dev

#initialize in root folder
node_modules/.bin/eslint --init

#Add the snippet below into "script" in package.json file.
"lint": "eslint ."

#Run 
npm run lint

Try other methods by searching on the site. That is if this doesn’t work