Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ ESLint: Recommended Syntax Warnings #338

Open
1aron opened this issue Mar 25, 2024 · 0 comments
Open

✨ ESLint: Recommended Syntax Warnings #338

1aron opened this issue Mar 25, 2024 · 0 comments
Labels
Milestone

Comments

@1aron
Copy link
Member

1aron commented Mar 25, 2024

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>
@1aron 1aron added feature New feature eslint labels Mar 25, 2024
@1aron 1aron added this to the 2.X milestone Mar 25, 2024
@1aron 1aron changed the title ✨ ESLint: Non-semantic Warnings ✨ ESLint: Recommanded Syntax Warnings Apr 1, 2024
@1aron 1aron changed the title ✨ ESLint: Recommanded Syntax Warnings ✨ ESLint: Recommended Syntax Warnings Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant