Ollie Williams
Ollie Williams

Reputation: 2528

Custom ESLint rule for CSS

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

Answers (0)

Related Questions