Skip to content
loading...

re: Linting in JavaScript with ESLint VIEW POST

FULL DISCUSSION
 

The npm script
"lint": "./node_modules/.bin/eslint ./src"
can be simplified to
"lint": "eslint ./src"

because npm adds local .bin directory to the shell path before executing the script.

 

Yep, I updated the post. Good catch.

code of conduct - report abuse