In my package.json I have:
"scripts": { "lint": "eslint --debug components" }When I run it withnpm run lint I see this
> eslint --debug componentseslint:cli Running on files +0mseslint:glob-util Creating list of files to process. +39mseslint:ignored-paths Looking for ignore file in c:\dev\Monies +6mseslint:ignored-paths Could not find ignore file in cwd +1mseslint:cli-engine Linting complete in: 13ms +5msSo it ignores my dir.
It does work as expected when I run it from command line.
node_modules\.bin\eslint --debug compomentseslint:cli Running on files +0mseslint:glob-util Creating list of files to process. +39mseslint:ignored-paths Looking for ignore file in c:\dev\Monies +5mseslint:ignored-paths Could not find ignore file in cwd +1mseslint:cli-engine Processing c:\dev\Monies\compoments\Header.js +15mseslint:cli-engine Linting c:\dev\Monies\compoments\Header.js +2mseslint:config Constructing config for c:\dev\Monies\compoments\Header.js +1msWhy it doesn't work withnpm run?
- I wasn't able to reproduce this with npm 3.10.8 and eslint 3.8.1. It works, for me.cartant– cartant2016-10-27 22:20:15 +00:00CommentedOct 27, 2016 at 22:20
1 Answer1
It looks like you have a typo in the directory name:
eslint --debug componentsversus
node_modules\.bin\eslint --debug compomentscomponents != compoments
Sign up to request clarification or add additional context in comments.
1 Comment
Piotr Perak
Thanks. I wonder how much more time I would lose before noticing it :)
Explore related questions
See similar questions with these tags.
