microsoft / griffel

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

lint: Fail the build/lint when an invalid CSS rule is found #462

Open miroslavstastny opened 1 year ago

miroslavstastny commented 1 year ago

When an invalid CSS rule is found during runtime, Griffel does not inject the rule and logs an error to console: image

When the same rule is found during build time, Griffel omits the rule but neither the build (CSS extraction) nor the Lint fails. One of them should report the error so that developers are informed as early in the development cycle as possible.