To wrap components we have written an eslint plugin #255
lishine
started this conversation in
Show and tell
Replies: 2 comments 3 replies
-
Edit: I didn't understand what this was. |
Beta Was this translation helpful? Give feedback.
2 replies
-
So could we tweak this plugin to suggest wrapping components in observer? How would that work? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
pnpm add @byondxr/eslint-plugin-automate
rule:
@byondxr/automate/react-wrap
an example of configuration here:
https://github.com/byondrnd/byondxr-dev/blob/main/example-app/.eslintrc.json
It wraps, adds an import and adds a displayname
There we have much more eslint automation - dependencies, snippets generation, useMemo and handler wrappers.
The example is not complete, more documentation planned.
Beta Was this translation helpful? Give feedback.
All reactions