Replies: 1 comment
-
I think it's always better to have an eslint rule than a "best practices": it's an easier way to guide the developer. We can add a "forbid-reserved-keywords" eslint rule that throws an error if any variable declaration uses one of the reserved keywords ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@samijaber
I found this test during development.
In my opinion this syntax is wrong.
props
should be inside the component function right?If that's the case I have some suggestions:
mitosis keywords
to "Gotchas", because some keywords will break a lot of generatorsprops
shouldn't beany
or empty like we see in the docsbest practices
section in docs (and/or the eslint-rule could be updated) to make sure that props are defined properly or at least add a hint that some generators might not work without proper typing of propsBeta Was this translation helpful? Give feedback.
All reactions