optional enforcement for lint/complexity/useLiteralKeys #327
yckbilly1929
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Do you mean that the behavior should depend on how is typed a property? Unfortunately we have no access to type information. I mainly accept with your point. I was an early adopter of TypeScript's noPropertyAccessFromIndexSignature. I finally turned off this config because it conflicts with Biome's After some thoughts, I concluded that it is not a good idea of using index signatures. In most of the cases, a Map should be used. You can also completely disable the rule in your config file. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After I switched from rome to biome, there are some changes to default behavior, like this one:
The computed expression can be simplified without the use of a string literal. biome lint/complexity/useLiteralKeys
Would like to know if it is possible to provide a config option to separate the checking of literal keys for dottable type and not-quite-dottable type (e.g.
{ [key: string]: any }
) ? Thanks.Beta Was this translation helpful? Give feedback.
All reactions