🐛 useLiteralKeys breaks object key #191
Labels
A-Linter
Area: linter
good first issue
Good for newcomers
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
What happened?
results in:
The computed expression can be simplified without the use of a string literal.
Apply fixes results in:
Which is invalid code.
https://biomejs.dev/playground/?code=YwBvAG4AcwB0ACAAbwBiAGoAIAA9ACAAewAgACIAIgA6ACAAIgBiAGwAYQBoACIAfQA%3D
Expected result
The rule should not trigger on object keys.
Code of Conduct
The text was updated successfully, but these errors were encountered: