stylex
stylex copied to clipboard
[babel-plugin] Validate styles used in the Babel compiler
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