Argument List Too Long error - maybe cl eslint not respecting ignore
See original GitHub issueTrying to follow along with the ESLint video from FEM, but running into a few issues, but here is one.
The following command line does not work.
./node_modules/.bin/eslint **/*.{js,jsx} --quiet
Neither does this:
./node_modules/.bin/eslint **/*.js --quiet
They both return ‘zsh: argument list too long: ./node_modules/.bin/eslint’
The following does:
./node_modules/.bin/eslint */*.jsx --quiet
So does this:
./node_modules/.bin/eslint **/*.jsx --quiet
I can only assume that this is because of the number of js files in the node_modules folder? But, eslint is supposed to ignore the node_modules folder by default. I try to run this using the --ignore-pattern flag, but doesn’t seem to matter.
I noticed a few glob sort of issues on the eslint repo and symlinks, but a bit over my head at the moment? https://github.com/eslint/eslint/issues/4606
Is anybody else having this problem and is there a workaround?
For the time being, I am just going to use ./node_modules/.bin/eslint **/*.jsx --quiet
and roll with it.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:5
Top GitHub Comments
Hi friends
With zsh, the
**/*.js
needs to be in quotes.my lint script looks like:
"lint": "./node_modules/.bin/eslint eslint '**/*.js' --fix"
hope that helps.
And here is a great explanation of the
**
globbing operator in zsh. https://unix.stackexchange.com/questions/62660/the-result-of-ls-ls-and-ls. And it appears to be the combination of**/*
in zsh. For instance,ls **/*
in bash works, butls **/*
in zsh will produce the same error of “argument list too long”.