You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ESLint plugin should have a rule for enforcing the order of properties in MessageDescriptor objects. The order should be autofixable. It would work beautifully with auto generating IDs wit enforce-id. Currently the id is inserted as the last property, but it would make sense to have it as the first instead.
The logical order would be the one defined in MessageDescriptor interface:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The ESLint plugin should have a rule for enforcing the order of properties in
MessageDescriptorobjects. The order should be autofixable. It would work beautifully with auto generating IDs witenforce-id. Currently the id is inserted as the last property, but it would make sense to have it as the first instead.The logical order would be the one defined in
MessageDescriptorinterface:TanStack does something like this, so it would probably be pretty easy to copy their implementation. See: https://tanstack.com/router/latest/docs/eslint/create-route-property-order
Beta Was this translation helpful? Give feedback.
All reactions