3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 15:42:58 +01:00

Ask the writer about an opening link in parse/ alone, and ban the markdown root from importing emit/, parse/ and portable/

This commit is contained in:
2026-11-10 21:20:47 +01:00
committed by Lillem4n
parent b3b5b66c0c
commit bffeb1f7d6
9 changed files with 88 additions and 44 deletions
+7 -1
View File
@@ -27,6 +27,12 @@
"no-restricted-imports": ["error", { "patterns": [{ "group": ["**/html/**"], "message": "docs/decisions.md §The source parts by ADF and format" }] }]
}
},
{
"files": ["src/markdown/*.ts"],
"rules": {
"no-restricted-imports": ["error", { "patterns": [{ "group": ["**/emit/**", "**/html/**", "**/parse/**", "**/portable/**"], "message": "A root file of src/markdown/ is read by the writers and the readers and imports neither: docs/decisions.md §The source parts by ADF and format" }] }]
}
},
{
"files": ["src/markdown/directive/**"],
"rules": {
@@ -36,7 +42,7 @@
{
"files": ["src/markdown/emit/**"],
"rules": {
"no-restricted-imports": ["error", { "patterns": [{ "group": ["**/html/**", "**/portable/**"], "message": "docs/decisions.md §The source parts by ADF and format" }] }]
"no-restricted-imports": ["error", { "patterns": [{ "group": ["**/html/**", "**/parse/**", "**/portable/**"], "message": "docs/decisions.md §The source parts by ADF and format" }] }]
}
},
{