Add no-relative-parent-imports rule in ui #189
Unanswered
ismay
asked this question in
Specs & RFCs
Replies: 2 comments 1 reply
-
Wondering how this would work with shared files, let's say in this scenario:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
The two rules seem to conflict, if I'm not mistaken? |
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
-
UI is getting fairly complex. We've encountered a couple dependency / import issues, and have also had several discussions about what goes where. There's an eslint rule that could help us automate the structuring of the library: no-relative-parent-imports
This rule is also something that could maybe help us out: no-internal-modules
I thought I'd open a discussion here first, see what everyone thinks of the above. I think it would be useful to automate things like this. For a large lib like ui I think it'd simplify organization if we could have eslint report violations of the preferred organization.
Beta Was this translation helpful? Give feedback.
All reactions