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

Pass scope to getKeyName util function everywhere it's used #255

Open
bmish opened this issue Jul 1, 2022 · 0 comments
Open

Pass scope to getKeyName util function everywhere it's used #255

bmish opened this issue Jul 1, 2022 · 0 comments
Labels

Comments

@bmish
Copy link
Member

bmish commented Jul 1, 2022

This will enable the helper to properly resolve object key names that use variables like:

const FOO = 'some-property-name';
const obj = {
  [FOO] = 'hello world'
}

https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/blob/067e8aa35d916e97e5091be3cd21f09ff00d77ed/lib/utils.js#L396

@bmish bmish added the bug label Jul 1, 2022
@bmish bmish changed the title Pass scope to getKeyName everywhere it's used Pass scope to getKeyName util function everywhere it's used Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant