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

Add no-useless-computed-key rule #26

Open
1 task
matejchalk opened this issue Nov 23, 2024 · 0 comments
Open
1 task

Add no-useless-computed-key rule #26

matejchalk opened this issue Nov 23, 2024 · 0 comments
Labels
➕ enhancement new feature or request

Comments

@matejchalk
Copy link
Contributor

User story

The no-useless-computed-key ESLint rule should get rid of unnecessarily "dynamic-looking" object properties.

Acceptance criteria

Current usage

const files = {
  ['README.md']: '# Hello, world'
}

Desired usage showcase

const files = {
  'README.md': '# Hello, world'
}

Which configuration is this related to?

default

ESLint version

No response

@matejchalk matejchalk added the ➕ enhancement new feature or request label Nov 23, 2024
@matejchalk matejchalk changed the title Feature request Add no-useless-computed-key rule Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ enhancement new feature or request
Projects
None yet
Development

No branches or pull requests

1 participant