-
-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Labels
Description
Documentation URL
https://next.biomejs.dev/linter/rules/use-consistent-object-definition/
Description
Hi!
I was the author of the original PR for the useConsistentObjectDefinition
implementation and now that the documentation is live I believe some things need to fixed/improved in that area.
- The rule description currently includes the phrase:
Defaults to explicit definitions.
However, this is redundant, as the default values for each option are already clearly documented in the Options section, which is generated through macros in the Rust code. This approach is more scalable and automatically maintained, making it unnecessary to repeat defaults in the rule description.
- The Valid/Invalid examples for
"syntax": "shorthand"
look good, but for"syntax": "explicit"
the Invalid example does not show any Biome error output. I probably forgot to make Biome use the JSON options above those 2nd Valid/Invalid examples.
Expectations
The Invalid examples with the "syntax": "explicit"
option should show the respective Biome error output.
Code of Conduct
- I agree to follow Biome's Code of Conduct