feat: Support TypeScript#106
feat: Support TypeScript#106condorheroblog wants to merge 17 commits intosquirrelsquirrel78:masterfrom
Conversation
|
If you want to release a new version, just run the |
23067d8 to
b345410
Compare
|
@condorheroblog sorry for the delay here. I'm technically a maintainer now and would be interested in getting this merged in, however it looks like your fork messed with the prettier formatting which resulted in a lot of files being changed. If you're still interested in this, please adjust it back so that it matches up with the existing formatting and reduces the number of changes in this PR |
|
Thank you for your reply, yes I am still interested, I used this project on company's official website. I used Biome to replace ESLint and Prettier for code formatting. If we want to use ESLint and Prettier, we need to upgrade to the latest version. ESLint from 8 to 9 is a major version upgrade. Can you create a commit to upgrade the formatting tool? |
|
👍 yup i'm working on upgrading all the project deps right now and will try to hit eslint as part of that. I'm also using this in some work for my company and was running into the same issue with eslint |
|
After you upgrade ESLint, you can modify my code directly or notify me and I will modify the code. Thank you. If you don't want to configure ESLint one by one, you might consider using https://github.com/antfu/eslint-config. |
|
Okay I opened up #107 - give that a try and lmk if you run into any issues. If that works, then i'd suggest using that branch as a starting point and then adding in the typescript support. Hopefully that'll be fairly straightforward with all the changes I made |
condorheroblog
left a comment
There was a problem hiding this comment.
Hi, I solved the code conflict, now you can continue to check my code. Thanks😁
tuckergordon
left a comment
There was a problem hiding this comment.
Hey just did a high level review and in general things look good and there are a lot of great changes in here! I can do a more in depth code review but before I do that, hoping you can address a few things:
- Lots of prettier changes in here, which is my fault for forgetting to add a
.prettierrc. Can you please add this.prettierrcto the file and re-run. Otherwise it's too difficult to review this PR because almost every file has changes in it
{
"bracketSameLine": true,
"printWidth": 100,
"proseWrap": "always",
"singleQuote": true,
"tabWidth": 2,
"useTabs": false
}
- I appreiciate the desire to add some infrastructure around releases and think it's a good idea, though I'm not sure we should implement it until we get some response from @jsonkao. He has the credentials for npm so we're not going to be able to publish anything until then
- Thanks for switching the example to vite, babel was a pain
- Also thanks for creating tests! Though I'm getting a
React Intersection Observer was not configured to handle mocking.message when trying to run them
There was a problem hiding this comment.
Looks like you're using an npm mirror, which is fine but we should be committing those changes to the package-lock. I can run npm install and push a non-mirror version if that's easier for you?
There was a problem hiding this comment.
Sorry, I have removed the mirror address (because the Chinese government restricts free access to the Internet, so I have to use the mirror source 😂)
src/step.tsx
Outdated
| }, [ref.current]); | ||
|
|
||
| const childElement = Children.only(children); | ||
| return cloneElement(childElement, { ref: setRefs }); |
There was a problem hiding this comment.
There is a type error here that prevents build
Check this link: thebuilder/react-intersection-observer#689 (comment) |
|
|
First of all, I'd like to thank you for your contribution.
Now, I need to use this codebase in a TypeScript environment. I've already migrated to TypeScript, and I'd appreciate any suggestions you might have.
Closed #98