Follow our own convention when registering a UI component #209
Labels
intro
Good first ticket.
squad:platform
Issue to be handled by the Platform team.
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
📝 Provide a description of the improvement
We generated this code by default:
While our convention is to not suffix the name with the "type" of the component. Which is well visible in the sample that we generate:
By suggesting an incompatible convention we cause the community plugins to differ from official ones.
BTW, answering "but the suffix make it more clear what we're registering": Yes, it does. But there's also a comment above which we should improve. Ideally, code comments should add something to the code, but right now it reads what the line below says 1:1.
📃 Other details
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: