Switch to the renamed @cunarist/eslint-plugin-modules
Check / check (pull_request) Successful in 2m10s

This commit is contained in:
Danny Kim
2026-10-17 15:43:47 +09:00
parent bfa8269801
commit d2d3cbffdb
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -11,13 +11,13 @@ unbuilt. `vp pack` inlines them, so they never reach package consumers.
One rule for every file, never tied to folder or file names (user rule
2026-10-17; it replaces the earlier "aliases only point at direct `src/`
subfolders" rule and the "import-check checks only aliased folders" scope):
subfolders" rule and the "the modules plugin checks only aliased folders" scope):
- **An alias may point anywhere** and owns its target. An alias to a
folder's `index.ts` owns that folder and everything below it; an alias to
any other file owns only that file.
- **No overlap.** No file may be owned by 2 aliases: no alias inside another
alias's area, and no 2 aliases with the same target. import-check's
alias's area, and no 2 aliases with the same target. the modules plugin's
`enforce-layer-order` reports it once at the top of every file 2 aliases
claim. Fix by merging the aliases or moving files apart.
- **Outside an area, only the exact alias reaches it.** A deeper alias