feature-sliced / eslint-config

🍰 Lint feature-sliced concepts by existing eslint plugins
https://npmjs.com/@feature-sliced/eslint-config
MIT License
119 stars 4 forks source link

LINT: Add `segments-boundaries` rule #63

Open azinit opened 2 years ago

azinit commented 2 years ago

Description

https://github.com/feature-sliced/eslint-config/discussions/55#discussioncomment-1887551

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";