-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bug: Folder name "entity-card/ui" in "shared/ui" is reserved for segment names #46
Comments
This is a rule that forbids having folders with segment-like names inside segments: https://github.com/feature-sliced/steiger/blob/master/packages/steiger-plugin-fsd/src/no-reserved-folder-names/README.md For example, you can't have |
But wait.. Segments can be complicated, and |
It's true that segments can be complicated, but I don't see how you would need to subdivide to
|
It doesn't make sense with api, but make sense with other segments like model (why not)? |
If I'm inside a segment |
Can't accept that. There are plenty UI elements that can have internal state, such as select-box. So where should I place logic? In UI segment? |
Not every instance of state needs to be a model. For example, a select box might track the state of selected options, but this is not business logic, so I would simply write that state inside the component, or in a sibling file. |
Правило: no-reserved-folder-names.
Не совсем понятно что именно тут нарушается.
Sandbox: https://codesandbox.io/p/devbox/steiger-test-g4f4wp
The text was updated successfully, but these errors were encountered: