Hi I’m having a problem the Express Web Framework tutorial.
In the “Setting up a Node development environment”, we are showed how to add ESLint as a devdependencies. So we need to update package.json in the scripts part. Can you give us a concrete example, because
- adding “eslint src/js” is not correct. I created the directory “src/” in my myapp folder then put index.js
- then running npm run lint, I got the error that eslint is missing a configuration file.
I cannot run eslint --init as it seems that bash does not recognize eslint even if my npm install of eslint with --save-dev worked.
I really don’t know what to do.
Would it be better to install ESlint generally then declare it in “devdepencies” so maybe I can at least run the ESlint --init configuration ?
error ‘require’ is not defined
I was testing the index.js where I had to include the http package !
I’m really lost here !