This commit is contained in:
parent
8e71537d57
commit
fcc18ddcc8
96 changed files with 8074 additions and 214 deletions
|
|
@ -46,6 +46,7 @@ export default tseslint.config(
|
|||
{ type: "emergency-baseline", pattern: "src/emergency-baseline/**" },
|
||||
{ type: "tests", pattern: "tests/**" },
|
||||
{ type: "scripts", pattern: "scripts/**" },
|
||||
{ type: "pipeline", pattern: "pipeline/**" },
|
||||
],
|
||||
"boundaries/ignore": ["**/*.test.ts", "**/*.spec.ts"],
|
||||
},
|
||||
|
|
@ -122,6 +123,10 @@ export default tseslint.config(
|
|||
"emergency-baseline",
|
||||
],
|
||||
},
|
||||
{
|
||||
from: "pipeline",
|
||||
allow: ["platform", "storage", "data", "domain", "emergency-baseline", "pipeline"],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
@ -164,6 +169,31 @@ export default tseslint.config(
|
|||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
// platform/idb and cache/sw are the ONLY places allowed to touch indexedDB/caches (B-1 — ui forbidden)
|
||||
files: ["src/platform/**/*.ts"],
|
||||
rules: {
|
||||
"no-restricted-globals": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
// pipeline is build-time Node code — relax some strict app rules
|
||||
files: ["pipeline/**/*.ts"],
|
||||
rules: {
|
||||
"no-restricted-globals": "off",
|
||||
"no-restricted-syntax": "off",
|
||||
"@typescript-eslint/restrict-template-expressions": "off",
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
||||
"@typescript-eslint/no-unnecessary-condition": "off",
|
||||
"@typescript-eslint/no-empty-object-type": "off",
|
||||
"@typescript-eslint/consistent-type-imports": "off",
|
||||
"@typescript-eslint/no-require-imports": "off",
|
||||
"@typescript-eslint/array-type": "off",
|
||||
"@typescript-eslint/no-non-null-assertion": "off",
|
||||
"@typescript-eslint/no-unnecessary-type-conversion": "off",
|
||||
"prefer-const": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
// Allow explicit forbidden-globals only where justified; tests may use them
|
||||
files: ["tests/**/*.ts", "scripts/**/*.ts"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue