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
To implement sort-alternatives, I had to implement a method to decide whether two alternatives can be reordered.
We can use this method to improve the reporting of no-dupe-disjunctions. Right now, superset alternatives are not reported by default (e.g. /\b(?:Foo|\w+)\b/). But if the alternatives can be reordered, a superset alternative can be become a subset alternative (e.g. /\b(?:Foo|\w+)\b/ == /\b(?:\w+|Foo)\b/).
The text was updated successfully, but these errors were encountered:
To implement
sort-alternatives
, I had to implement a method to decide whether two alternatives can be reordered.We can use this method to improve the reporting of
no-dupe-disjunctions
. Right now, superset alternatives are not reported by default (e.g./\b(?:Foo|\w+)\b/
). But if the alternatives can be reordered, a superset alternative can be become a subset alternative (e.g./\b(?:Foo|\w+)\b/
==/\b(?:\w+|Foo)\b/
).The text was updated successfully, but these errors were encountered: