Skip to content

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

Description

@bemyhre

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? eslint/eslint#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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions