Skip to content
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

Unable to run grunt-eslint with version 25.0.0 - "Could not find config file. Use --force to continue." #176

Open
codders opened this issue May 7, 2024 · 3 comments

Comments

@codders
Copy link

codders commented May 7, 2024

Hi there,

I've just upgraded from v24.3.0 to v25.0.0 with npm i [email protected]. This pulls in the tgz from registry.npmjs.org (with hash sha512-JIV5IPgOuacorFLmYtUTq0n+0qGIL9FSQJ4KVnNfCg/8Fm+K1t6OWrzXXI8TxWTwq2K9E3parFVXCpn1sGLbKQ==), but that archive is only 2.5k zipped and contains just 4 files.

The file for download from the Github releases package is 50k zipped with a sha512sum of 591c37fccae5365d8e82d9738de855ce7ce2a60928802cdff46225b28727faca227245fdfb5fdc66ce9bf2189d309d582ab0eb7cdf984af7fb68a665aa092bef.

Because conf/eslint.js is missing from the npm archive, eslint cannot find the config file and an error occurs.

Can you re-upload the package or bump the version?

@sindresorhus
Copy link
Owner

No, that is not correct.


Your problem is probably this:

If you want to use non-flat config, you need to pass the ESLINT_USE_FLAT_CONFIG environment variable

@codders
Copy link
Author

codders commented May 7, 2024 via email

@codders
Copy link
Author

codders commented May 8, 2024

I created a skeleton project that reproduces the issue: https://github.com/codders/grunt-eslint-176/

From what I can see, setting the ESLINT_USE_FLAT_CONFIG option has no effect. Can you confirm? (and apologies in advance is this is just a question with a really obvious answer)

@codders codders changed the title npm package missing files - "Could not find config file. Use --force to continue." Unable to run grunt-eslint with version 25.0.0 - "Could not find config file. Use --force to continue." May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants