rushstack
rushstack copied to clipboard
[eslint-config] Support for eslint-config-next
Summary
I'm trying to run pnpm dlx eslint --fix with my eslint package as follow:
- eslint-plugin-unicorn
- eslint-config-next
- typescript-eslint
Repro steps
Expected result: I'm expecting the fix would run
Actual result:
Error: Cannot read config file: D:\next_project\node_modules.pnpm\[email protected]_e_bb04fd41856dce36426d8f084dc159a5\node_modules\eslint-config-next\index.js
Error: Failed to patch ESLint because the calling module was not recognized.
If you are using a newer ESLint version that may be unsupported, please create a GitHub issue:
https://github.com/microsoft/rushstack/issues
Referenced from:
at Object.
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@rushstack/eslint-config version? |
15.3.1 |
| Operating system? | Windows |
| Would you consider contributing a PR? | No |
| TypeScript compiler version? | 5.8.3 |
Node.js version (node -v)? |
22.14.0 |
We should add a feature to log the path of colling modules when we emit this error.
This may be addressed by https://github.com/microsoft/rushstack/pull/5219
Seems to be a duplicate of #4965