Skip to content

duplicate-utility

Reports the same utility written twice under the same conditions.

This rule reports a utility that appears twice under the same conditions, such as p-4 p-4. The second one adds nothing.

Reported

style("p-4 p-4");duplicate-utility: utility `p-4` is repeated under the same conditions

Fixed

style("p-4");

How to fix

Remove one of them. The automatic fix removes the repeated utility.

Two different utilities that set the same property are reported by conflicting-utilities instead.

Rule settings

PresetSeverity
recommendedwarn
strictdeny
stylisticoff

Configure lint to change the severity or options.