Skip to content

Instantly share code, notes, and snippets.

@intelliot
Created July 27, 2019 22:45
Show Gist options
  • Save intelliot/95873635b3f7e349b102ae6c8d4d94c1 to your computer and use it in GitHub Desktop.
Save intelliot/95873635b3f7e349b102ae6c8d4d94c1 to your computer and use it in GitHub Desktop.

Getting this error? Looks like something changed between eslint 2.7.0 and eslint 6.1.0.

% yarn lint
yarn run v1.17.3
$ ./node_modules/.bin/eslint -c ./eslintrc Gulpfile.js **/*.js

Oops! Something went wrong! :(

ESLint: 6.1.0.

No files matching the pattern "node_modules/bignumber.js" were found.
Please check for typing mistakes in the pattern.

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

eslint/eslint#10880

Fix: Add single quotes around the glob. Example:

"lint": "./node_modules/.bin/eslint -c ./eslintrc Gulpfile.js '**/*.js'"

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