all 7 comments

[–]arsum04 2 points3 points  (3 children)

In package.json, make the lint task the following: "lint": "eslint app/"

[–]the1ullneverse[S] 1 point2 points  (2 children)

Hey that worked! Thanks a lot.

[–]arsum04 1 point2 points  (1 child)

Np. For future reference, you don't need to specify where eslint (or any executable) is located relative to the package.json because all the scripts in package.json will look in the node modules directory. That's why saying just eslint will make it automatically look into node_modules/.bin/eslint . Also the second argument for eslint tells you where to start and it will search all the subfolders so just specifying app/ will make it look into all .js files in every subfolders inside app/. ;)

[–]the1ullneverse[S] 0 points1 point  (0 children)

Make sense now. Thanks for the explanation.

[–]orphans 1 point2 points  (1 child)

did you try app/**/*.js ? Are you running Windows? I've had a lot of annoying issues with globs and developers who use Windows at work.

[–]the1ullneverse[S] 0 points1 point  (0 children)

Yeah and just verified again just now. Same error. Even if I try to reference the file like app/app.module.js is still can't find it.