The Wayback Machine - http://web.archive.org/web/20201105052907/https://github.com/cssinjs/jss/issues/1336
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

[Feature Request] optional dev-mode styles validation and warnings about invalid styles #1336

Open
jedwards1211 opened this issue Apr 21, 2020 · 0 comments

Comments

@jedwards1211
Copy link
Contributor

@jedwards1211 jedwards1211 commented Apr 21, 2020

Is your feature request related to a problem? Please describe.
As mentioned in #1334, I experienced confusing behavior because I had animation: [...], and AFAICT arrays aren't supported for animation, which is my mistake; but the server-side styles accidentally turned out to work anyway, which really threw me for a loop.

Describe the solution you'd like
If I could make JSS warn about any invalid styles in dev mode, I think it would prevent me from wasting time on confusing problems like this in the future.

Are you willing to implement it?
Yup! As there are a lot of things that could be validated, let me know if you want to discuss an architecture for performing validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.