-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESLint doesn't support globbing? #1663
Comments
We don't currently support globbing, though you can do |
According to this SO issue you need an option to be set in bash for Sorry about the noise of this issue, I incorrectly thought optionator expanded the arguments from npm scripts but the issue seems to be in bash. I think an option in |
You can use I'm not sure it's worth adding globbing support to the command line. Most people use ESLint through a build system like Grunt that does its own globbing. Can you let me know if |
Nope |
@briandipalma that’s not true, |
@lo1tuma I must have messed something up in my bash setup yesterday because it didn't work for me, today it does. Thanks for disagreeing with me, prompted me to test again! Hopefully Windows works the same. |
In this case, This is not a critical issue to me, as there are ways to work around it. But what do you think? Should it look for the |
You have to tell ESLint that you want to lint |
Nice catch, using |
Worth noting for anyone looking that in
All you need is single quotes around the path eg |
I think we do support globbing now, incidentally. If you want to avoid the shell expanding your globs, you can quote them with double quotes and that should do it in most shells. |
Is there a way to lint files recursively on Windows like I do on Linux using |
…ndencies) - Refactoring: Remove (mostly) no longer needed `URLSearchParams` polyfill - Linting: ESLint (indents) - npm: Fix ESLint script per eslint/eslint#1663 (comment) - npm: Upgrade dev deps - npm: Bump to version 0.7.0
…ndencies) - Refactoring: Remove (mostly) no longer needed `URLSearchParams` polyfill - Linting: ESLint (indents) - npm: Fix ESLint script per eslint/eslint#1663 (comment) - npm: Upgrade dev deps - npm: Bump to version 0.7.0
eslint doesn't seem able to be run on all files in a directory to any depth, is this a limitation of optionator? As it stands I'll have to add all the directories I want linted by hand to the npm script. That's a lot of directories,
**
support would be great.The text was updated successfully, but these errors were encountered: