Answers for "how to run eslint"

1

running eslint

#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
Posted by: Guest on August-19-2021
0

eslint npm install

$ npm install eslint --save-dev
$ ./node_modules/.bin/eslint --init
Posted by: Guest on July-30-2020
-1

how to run eslint on the whole project

# cd to your root project folder
eslint "./**" --fix
Posted by: Guest on October-14-2020
-1

npx eslint src

yarn lint-fix
Posted by: Guest on June-03-2020

Browse Popular Code Answers by Language