-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add options to allow cross imports between slices in "fsd/forbidden-imports" #182
Comments
Hi! Yeah, I see how the current ruleset doesn't serve your use case. I think what you're describing can be achieved by splitting Would you like to try to implement it? |
Good idea
Maybe I will try to do it in the future) |
@illright, would it be okay if I took on this issue?
Though I think it might be better to enable these two rules by default in the recommended config, and allow users to opt out for granular control instead. Also, I have another question about the issue: In the above issue describe, I think using |
@gwbaik9717 it would certainly be okay :)
That would be a breaking (albeit minor) change. If someone had the I'll also take the liberty to answer the question about the issue because I feel like I know the answer — if Alexander's team has decided that they don't want to restrict cross-imports between widgets, that's certainly irregular for FSD, but if it makes their life easier and not harder, then all the power to them |
Thank you for the answer! Just to clarify: To ensure backward compatibility, we’re keeping I have two questions.
|
Yes, Come to think of it, it would be nicer if we could remove the This leads me to the conflict handling — there will be no conflicts, these rules will function completely independently. If someone turns on |
That makes perfect sense now. Thank you for the clear explanation! |
Hey! Sometimes I use cross-imports between widgets (any slices in a same layer) and want to describe it in the config like that:
Could we discuss this option? I know that this violates the FSD, but sometimes is very useful, and now I have to completely turn off the rule for the slice like:
The text was updated successfully, but these errors were encountered: