microsoft / griffel

CSS-in-JS with ahead-of-time compilation ⚡️
https://griffel.js.org
MIT License
1.2k stars 61 forks source link

feat: no invalid shorthand argument rule #500

Closed NotWoods closed 9 months ago

NotWoods commented 9 months ago

Adding a linter rule for invalid shorthand values like those warned agaisnt in the docs:

Caution: The most of the functions follow syntax in matching CSS properties, but each value should a separate argument

I also improved the no-shorthands rule to handle template strings and !important, then shared logic between the two rules.

github-actions[bot] commented 9 months ago

📊 Bundle size report

🤖 This report was generated against 132c8fe71bb5cc03a5008f3902292ce82fb8c8de

layershifter commented 9 months ago

Love it ❤️ Will trigger a release after the merge 🚀