Add enforce-select-other-branch
and enforce-selectordinal-other-branch
#3070
JordanMartinez
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I believe those are already built in, in the sense that without |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The ICU Message Syntax page indicates that
select
,plural
, andselectOrdinal
must all have an 'other' branch.eslint-plugin-formatjs
supports theenforce-plural-rules
rule, which can be used to guarantee that all usages ofplural
have another
branch like so:However, there isn't a corresponding rule that enables the same requirement but for
select
orselectordinal
.Could rules for these two situations be added? Perhaps call them
enforce-select-other-branch
or something?Beta Was this translation helpful? Give feedback.
All reactions