recommended config.
🔧 This rule is automatically fixable by the --fix CLI option.
As explained in the official documentation about the important modifier:
In
v3you could mark a utility as important by placing an!at the beginning of the utility name (but after any variants).In
v4you should place the!at the very end of the class name instead.
The old way is still supported for compatibility but is deprecated.
Examples of incorrect code for this rule:
<h1 class="!block">Demo</h1>Examples of correct code for this rule:
<h1 class="block!">Demo</h1>- 🤓 Move away from deprecated old way
There are no specific options for this rule, yet it uses the general settings.