Limit the parent-path ban in the notes to imports
Check / check (pull_request) Successful in 1m24s

This commit is contained in:
Danny Kim
2026-10-18 03:50:14 +09:00
parent 50df193a8c
commit 627458fb5f
2 changed files with 14 additions and 11 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ convention, see the last section):
area (`./a/one.ts`, `no-relative-bypass`; `./b/f.ts` to a file alias,
`prefer-alias-import`, fixed to the alias) are bypasses.
- **Inside an area, relative imports of siblings and subfolders are free.**
- **`../` is banned in every file**, owned or not (`no-parent-import`).
- **A `../` import is banned in every file**, owned or not (`no-parent-import`).
Runtime file URLs (`new URL("../prompt.md", import.meta.url)`) are not
imports and are allowed.
Anything above a file needs an alias.
- **Files no alias owns** need no `index.ts` and no alias, and import `./`
siblings and subfolders freely.