Skip to content

Commit 5fdb806

Browse files
docs: add new rule idea no-unnecessary-arbitrary-value
1 parent b070467 commit 5fdb806

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,8 @@ The plugin will look for each setting in this order and stops searching as soon
221221
- `no-redundant-variant`: e.g. avoid `mx-5 sm:mx-5`, no need to redefine `mx` in `sm:` variant as it uses the same value (`5`)
222222

223223
- `only-valid-arbitrary-values`:
224+
224225
- e.g. avoid `top-[42]`, only `0` value can be unitless.
225226
- e.g. avoid `text-[rgba(10%,20%,30,50%)]`, can't mix `%` and `0-255`.
227+
228+
- `no-unnecessary-arbitrary-value`: e.g. replacing `h-[0]` by its configuration based classname `h-0`.

0 commit comments

Comments
 (0)