Reputation: 2528
ESLint has added support for CSS. There aren’t any docs or guides for writing a custom rule.
How would I write a custom rule that only allows colors to be specified in CSS using the oklch syntax? I want ESLint to error if, for example, rgb() or hex is used.
Upvotes: -3
Views: 39