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
Uh oh!
There was an error while loading. Please reload this page.
-
@samijaber
I found this test during development.
In my opinion this syntax is wrong.
propsshould be inside the component function right?If that's the case I have some suggestions:
mitosis keywordsto "Gotchas", because some keywords will break a lot of generatorspropsshouldn't beanyor empty like we see in the docsbest practicessection 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