-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter errors when using TreeViewApi
#52
Comments
Hey @fernandocanizo thanks for bringing this to our attn. Can you possibly provide a minimal reproduction? Codesandbox link or otherise would be great. But at first glance...
Same goes for the Which brings us to the classNames, where you're getting a missing in props validation issue that somehow seems to me like it might be unique to your project's eslint config. But I did see similar issues with a few workarounds on a few different repos:
If you're using vscode, my best is likely this suggestion here: shadcn-ui/ui#120 (comment) Will be glad to dig in further when you are able to provide a reproduction. Thank you. |
Hi @gaurangrshah, thanks for the follow up and the links. I also came across some of those when I started looking into it, as I found, after publishing this issue, that the problem appears also in some base components from Shadcn/ui. So after reading all I could find, now I understand the problem is related to The problem is that most probably anyone doing modern development these days would probably have an Eslint configured with plugin To me the best argument to disable the rule, which I disliked at first, is that Regarding the issue surfacing in
// ...
& { className?: string } I did a quick attempt at making it reproducible: I wanted to use the relevant part of Remix default Eslint configuration in Regarding the unused values, some appear ( |
Hey @fernandocanizo thank you so much for doing the research and reporting back. I did not originally realize that this was related to a Remix project. We definitely want to be able to support all of the frameworks that ShadCn itself actually supports. After going over your findings I whole heartedly agree with you. Personally I am a big fan of eslint and look forward to adding it to this project. We are actually in the middle of a refactor to a monorepo setup with some new additions. So we will be taking the time to address some these issues as well as we work towards a v1 release. We'll be making some announcements shortly in regards to these new updates I'd like to keep our channel of communication open if that interests you we just opened our discord up to the public and would like to extend the invitation to you as well. https://discord.gg/Fq6n4dYU Thank you again for your due diligence and taking out the time to repot back. |
Thanks for the invitation, coming there as soon as I hit the button to send this comment :) Just to clarify: it's a Remix project, but the issue is not Remix related specifically. It's just that Remix' scaffolder brings in an Eslint configuration with |
Hi @gaurangrshah , could we add a bot for closing issue that are stale or they don't have activity for long time? |
That makes sense, I've seen some used before, but never used one myself. If you know of any specific ones that are good can u drop me some links to research in discord? If not I'll do some digging early next week. |
Hello, I'm trying to use
TreeViewApi
and Eslint complains about several things:I cloned the repo and opened the file and I get a different set of errors and warnings. I wonder what's the difference and which set of rules provides a better DX and reassurance against possible errors.
The text was updated successfully, but these errors were encountered: