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

accessor keyword (TC39) causes no_undef warning/error in eslint #199

Open
srijken opened this issue Apr 29, 2024 · 1 comment
Open

accessor keyword (TC39) causes no_undef warning/error in eslint #199

srijken opened this issue Apr 29, 2024 · 1 comment

Comments

@srijken
Copy link

srijken commented Apr 29, 2024

After changing this:

@state()
_foo = false;

to this:

@state()
accessor _foo = false;

causes an no_undef error on _foo. Can this be fixed?

@43081j
Copy link
Owner

43081j commented May 4, 2024

i suspect this isn't our problem and is actually just that eslint doesn't support stage 3 proposals out of the box

for example, this plugin exists from babel:
https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin

which has its own no-undef to add support for accessors (until they reach stage 4)

can you let me know if that helps?

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