Open azinit opened 2 years ago
I built something a bit similar for my company's custom eslint-plugin, mine is a typescript specific plugin but you can probably adapt the code to build this check. https://github.com/tablecheck/tablecheck-react-system/blob/refactor-to-vite-and-typescript/packages/eslint-plugin/src/shortestImport.ts
@SimeonC Thanks! ❤️
Glossary
entity/foo <-> entity/bar
,entity/foo <-> shared/ui/button
entity/foo <-> entity/foo/ui
,entity/foo/ui/smth <-> entitiy/foo/lib
Description
Example
Reference
https://github.com/feature-sliced/documentation/discussions/52#discussioncomment-477443