Open azinit opened 2 years ago
[ ] Segments (in shared and in slices) should follow the next rule:
ui => model => api => lib => config
ui
model
api
lib
config
[ ] Ideally:
[ANY_CUSTOM_SEGMENT] => ui => model => api => lib => config => [ANY_CUSTOM_SEGMENT]
[ANY_CUSTOM_SEGMENT]
https://github.com/feature-sliced/eslint-config/discussions/55#discussioncomment-1887551
/** @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";
Description
[ ] Segments (in shared and in slices) should follow the next rule:
[ ] Ideally:
https://github.com/feature-sliced/eslint-config/discussions/55#discussioncomment-1887551
Example