We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
symbol
getPropertyName
Currently getPropertyName always return string (bigint is also possible when it's Literal), but property can be a symbol
string
Literal
bar[Symbol.iterator]()
This can be calculated by getStaticValue.
getStaticValue
BTW: Similar bug in ESLint core, this will cause foo["Symbol()"] foo[Symbol()] considered as same reference.
foo["Symbol()"]
foo[Symbol()]
I think it should return string | symbol or just return the value as it is, let user convert to string.
string | symbol
The text was updated successfully, but these errors were encountered:
tests: fix ES2022 tests (mysticatea#23)
078c406
Hi @fisker!
Since this repo is unmaintained, you might want to re-open this issue in the @eslint-community fork https://github.com/eslint-community/eslint-utils
For more info about why we created this organization, you can read https://eslint.org/blog/2023/03/announcing-eslint-community-org
Sorry, something went wrong.
No branches or pull requests
Currently
getPropertyName
always returnstring
(bigint is also possible when it'sLiteral
), but property can be asymbol
This can be calculated by
getStaticValue
.BTW: Similar bug in ESLint core, this will cause
foo["Symbol()"]
foo[Symbol()]
considered as same reference.I think it should return
string | symbol
or just return the value as it is, let user convert tostring
.The text was updated successfully, but these errors were encountered: