Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate styles used in the Babel compiler #722

Open
nmn opened this issue Oct 9, 2024 · 0 comments
Open

Validate styles used in the Babel compiler #722

nmn opened this issue Oct 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nmn
Copy link
Contributor

nmn commented Oct 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant