-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
'TypeError: context.getAncestors is not a function' with ESLint v9 #2995
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
Comments
eslint-plugin-import/package.json Line 104 in 8587c85
Compatibility issue: #2948 |
is it package will upgrade or no? |
Just like with every eslint major, you basically always have to wait weeks or months to upgrade to it, until all the plugins and configs you depend on have had a chance to do so. Closing as a duplicate of #2948. Thanks for the stack trace - that will help the effort to add compatibility. |
I'm experiencing this exact stack trace with ESLint 9.11.0 and eslint-plugin-import 2.30.0 and I'm following the doco here I can't comment on the broader ESLint v9 issue as it's locked. |
@cameronmurphy the eslint 9 issue being still open means we don't support eslint 9 yet, so you simply can't use it with this plugin yet. Stick to eslint 8 for now. |
See import-js/eslint-plugin-import#2995 and import-js/eslint-plugin-import#2556#issuecomment-2121423498
* Remove `comma-dangle` * Begin ESLint v9 rewrite, remove unused React config * Switch to flat config * Change `no-console` to `warn` * Update package versions * Update peer dependencies versions, move import to dependencies * Mark as RC * Disable `import/no-named-as-default` See import-js/eslint-plugin-import#2995 and import-js/eslint-plugin-import#2556#issuecomment-2121423498 * Remove `plugins` * Update `eslint-plugin-import` In hindsight, I should have read the release notes and saw that the PR wasn't released yet even though it was merged. * Add typings * Release version 2.0.0 * Add the types to `package.json` * Add the ESLint configuration to the README
and how about now-ish? hope hope |
eslint 9 works with this plugin already. The only caveat is the no-unused-modules rule, which requires an empty .eslintrc at the root if you're using flat config. |
After upgrading to ESLint v9 I'm getting the following exception:
The text was updated successfully, but these errors were encountered: