Open Bwvolleyball opened 3 weeks ago
Yeah eslint-bulk-suppressions
currently don't support ESLint 9. @octogonz - can your team take a look at this?
Possibly related issue: https://github.com/eslint/config-inspector/issues/70 (see reproduction steps in the third comment).
@iclanton can you please elaborate why this ticket was marked as low priority?
It also fails in basic scenario of shareable config with ESLint 9...
Here's an example of such config: https://www.npmjs.com/package/@kirill.konshin/eslint-config-next-custom?activeTab=code
This is the usage:
import defaultConfig from '@kirill.konshin/eslint-config-next-custom';
export default [
...defaultConfig,
{
ignores: [ ... ],
},
];
Error:
Error: Cannot read config file: /x/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.<anonymous> (/x/node_modules/@rushstack/eslint-patch/lib/_patch-base.js:167:19)
Related issue https://github.com/microsoft/rushstack/issues/4635#issuecomment-2447939291 — I have added reproducible scenarios. It seems it has something to do with Yarn Berry.
I also encountered the same error.
Summary
Trying to use ESLint 9 with this plugin, which supposedly it should support now, but I can't get it to work.
Repro steps
Trying to import the plugin from
eslint.config.mjs
:but all I get when I run
eslint \"src/**/*.{ts,tsx,js}\"
is:Details
We migrated ESLint to Version 9, and then this patch plugin started breaking.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
node -v
)?