3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 14:45:44 +01:00

Hold the import boundaries in the lint config and name its script and leg lint

This commit is contained in:
2026-10-22 01:36:09 +02:00
committed by Lillem4n
parent 9d180ae7e8
commit c2fa6fa9b0
5 changed files with 30 additions and 27 deletions
+14
View File
@@ -2,6 +2,20 @@
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": { "correctness": "off" },
"ignorePatterns": ["src/**/*.test.ts", "src/conformance/property-harness.ts"],
"overrides": [
{
"files": ["src/markdown/directive/**"],
"rules": {
"no-restricted-imports": ["error", { "patterns": [{ "group": ["**/emit/**", "**/parse/**"], "message": "docs/decisions.md §The source parts by ADF and format" }] }]
}
},
{
"files": ["src/markdown/parse/**"],
"rules": {
"no-restricted-imports": ["error", { "patterns": [{ "group": ["**/emit/**", "!../emit/spelling-questions.ts"], "message": "docs/decisions.md §The source parts by ADF and format" }] }]
}
}
],
"rules": {
"eslint/max-lines-per-function": ["error", { "IIFEs": true, "max": 52, "skipBlankLines": false, "skipComments": false }]
}