Answers for "add 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

install eslint

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

install eslint

#install globally
npm i -g eslint

#install in project
npm install eslint --save-dev
Posted by: Guest on August-19-2021
3

eslint ignore

/* eslint-disable */

alert('foo');

/* eslint-enable */
Posted by: Guest on September-03-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language