stylex icon indicating copy to clipboard operation
stylex copied to clipboard

[babel-plugin] Validate styles used in the Babel compiler

Open nmn opened this issue 1 year ago • 0 comments

Validate all styles that are created with stylex.create (and other APIs) in the Babel compiler itself, in addition to the stylex/valid-styles ESLint rule. Throw an error during the build when invalid values are used even if they can be compiled.

Add a configuration option to log the errors instead.


The validation logic should be backed by a full-featured CSS value parser. nmn/css-value-parser may be used for this purpose.

Also see, #721

nmn avatar Oct 09 '24 03:10 nmn