Eddy Brown
Eddy Brown
I've been playing around with this myself, as RxDB looks great and having better type support via hooks would be great. https://github.com/emab/rxdb-hooks-todo/blob/dcd4f8a6c60ee9898db075f1cff2cc5396fa0a1f/src/Todo.tsx Here's an example Todo application, with some hooks....
Can I look into this one? Edit: have seen that this is extending the existing rule. Looks fairly complex already but will have a look, maybe best not to assign...
Bit of a work in progress. Not sure if I should include an action to remove the comment, or replace with `ts-expect-error`.
I'm guessing the performance hit is due to using `AnyJsModuleItem`? I wasn't sure how to directly find only comment stings. Should I be using the semantic model instead?
> No. You only need to query the CST, comments are trivia and they have no part in the semantic model. > Okay cool, I thought that was the case!...
> Yeah, that's right. There was this old initial implementation that you could use as a source of inspiration: https://github.com/rome/tools/pull/2811/files Be mindful that the PR was closed, which means that...
Sorry I missed your comment! I've been really busy and this was tricker than I anticipated, so best to let someone else have a look.
> [@stevegreco](https://github.com/stevegreco) For React hooks, you can use a similar approach—@storybook/preview-api provides similar hooks like useState, useCallback, etc. But a better option would be to just create a wrapper for...
I think the bits I missed out after the initial `npx` command then running `pnpm` install was the command mentioned in step 2 (build the generator!). Fairly obvious now that...