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

"context.getScope is not a function" #139

Closed
caseywatts opened this issue Sep 3, 2024 · 5 comments
Closed

"context.getScope is not a function" #139

caseywatts opened this issue Sep 3, 2024 · 5 comments

Comments

@caseywatts
Copy link

When I ran eslint with this plugin's flat/best-practice settings enabled, I got this error:

Oops! Something went wrong! :(

ESLint: 9.9.1

TypeError: context.getScope is not a function

It was triggered by this rule:

Rule: "wc/no-child-traversal-in-connectedcallback"

This is probably related to some changes in eslint 9.0.0

eslint.org has a page about this error specifically:
https://eslint.org/docs/latest/use/troubleshooting/v9-rule-api-changes

@43081j
Copy link
Owner

43081j commented Sep 3, 2024

This should be fixed by #137 but I'm not sure we released it yet

I'll publish a new one this week if not

@nkabrown
Copy link

nkabrown commented Oct 1, 2024

Just bumping this issue and flagging that ESLint v8.x end of life is this week on October 5th. Thanks.

https://eslint.org/blog/2024/09/eslint-v8-eol-version-support/

@43081j
Copy link
Owner

43081j commented Oct 2, 2024

Gah! So sorry this was forgotten. I'll release a new version tomorrow 👍

@honia19
Copy link

honia19 commented Oct 6, 2024

the same issue on last version 2.1.1
Temporary fix is:

import { fixupPluginRules } from "@eslint/compat";
import wcPlugin from 'eslint-plugin-wc';
    plugins: {
      wc: fixupPluginRules(wcPlugin),
      //...other plugins
    },

@43081j
Copy link
Owner

43081j commented Oct 7, 2024

2.2.0 has been published 👍

@43081j 43081j closed this as completed Oct 7, 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

4 participants