master-co / css

The CSS Language and Framework
https://css.master.co
MIT License
1.78k stars 41 forks source link

✨ ESLint: Recommended Syntax Warnings #338

Open 1aron opened 6 months ago

1aron commented 6 months ago

Description

Writing a complete CSS declaration may not look good in class attributes. To simplify the class and unify the team's style, we have proposed a new solution:

Non-utility warnings

⚠️ Avoid writing the full CSS declaration display:block.

<div class="display:block"></div>

🟢 Possible fixes: Use the recommended utility block.

<div class="block"></div>

Recommended keys

⚠️ Not a recommanded key t:.

<div class="t:center"></div>

🟢 Possible fixes: Use the recommended key text:.

<div class="text:center"></div>