diff --git a/eslint-utils/build-groups.js b/eslint-utils/build-groups.js index 39420789..3394998a 100644 --- a/eslint-utils/build-groups.js +++ b/eslint-utils/build-groups.js @@ -13,10 +13,7 @@ const cartesianProduct = (arrays) => const modifierCombos = ({ modifiers }) => cartesianProduct(modifiers).map((combo) => combo.filter(Boolean)) -const compatibleModifierCombos = ({ - modifierIncompatibilities, - modifiers, -}) => +const compatibleModifierCombos = ({ modifierIncompatibilities, modifiers }) => modifierCombos({ modifiers }).filter((combo) => combo.every((modifier) => (modifierIncompatibilities[modifier] ?? []).every(