btholt / btholt/complete-intro-to-react

Argument List Too Long error - maybe cl eslint not respecting ignore

Open
#91 5 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

Trying 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.