Answers for "run eslint from server"

3

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

create eslint run script in package.json

`eslint . --ext .js` -> `npx eslint . --ext .js`
Posted by: Guest on March-07-2022

Browse Popular Code Answers by Language