Skip to content
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

LINT: Add segments-boundaries rule #63

Open
2 tasks
azinit opened this issue Dec 30, 2021 · 0 comments
Open
2 tasks

LINT: Add segments-boundaries rule #63

azinit opened this issue Dec 30, 2021 · 0 comments
Milestone

Comments

@azinit
Copy link
Member

azinit commented Dec 30, 2021

Description

  • Segments (in shared and in slices) should follow the next rule:

    ui => model => api => lib => config

  • Ideally:

    [ANY_CUSTOM_SEGMENT] => ui => model => api => lib => config => [ANY_CUSTOM_SEGMENT]

#55 (reply in thread)

Example

/** @path features/smth/ui/** */
// Pass
export { getSmth } from "../lib";
export { selectById } from "../../model";
/** @path features/smth/api/** */
// Fail
export { FormType } from "../../../ui";
export { selectById } from "../../model";
// Pass
export { getSmth } from "../lib";
@azinit azinit added this to the 0.2.X milestone Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant