refactor: enforce typed frontend runtime boundaries
This commit is contained in:
@@ -36,35 +36,18 @@ export default tseslint.config(
|
||||
rules: {
|
||||
"no-undef": "off",
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"@typescript-eslint/no-unused-vars": ["error", {
|
||||
argsIgnorePattern: "^_",
|
||||
caughtErrors: "none",
|
||||
varsIgnorePattern: "^_",
|
||||
}],
|
||||
// DOM event targets intentionally ignore listener return values. Async
|
||||
// listeners handle their own failures; keep the rule for all other
|
||||
// promise misuse sites.
|
||||
"@typescript-eslint/no-misused-promises": ["error", { checksVoidReturn: false }],
|
||||
"@typescript-eslint/restrict-template-expressions": ["error", { allowNumber: true }],
|
||||
},
|
||||
},
|
||||
{
|
||||
// app.ts is the final migrated monolith. The compiler checks it with the
|
||||
// full strict baseline; rules that require runtime schemas or broad async
|
||||
// rewrites stay disabled here until those responsibilities are extracted.
|
||||
files: ["src/app.ts"],
|
||||
rules: {
|
||||
"prefer-const": "off",
|
||||
"@typescript-eslint/no-base-to-string": "off",
|
||||
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
||||
"@typescript-eslint/no-floating-promises": "off",
|
||||
"@typescript-eslint/no-misused-promises": "off",
|
||||
"@typescript-eslint/no-unnecessary-condition": "off",
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
||||
"@typescript-eslint/no-unnecessary-type-conversion": "off",
|
||||
"@typescript-eslint/no-unsafe-argument": "off",
|
||||
"@typescript-eslint/no-unsafe-assignment": "off",
|
||||
"@typescript-eslint/no-unsafe-call": "off",
|
||||
"@typescript-eslint/no-unsafe-member-access": "off",
|
||||
"@typescript-eslint/no-unsafe-return": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"@typescript-eslint/require-await": "off",
|
||||
"@typescript-eslint/restrict-plus-operands": "off",
|
||||
"@typescript-eslint/restrict-template-expressions": "off",
|
||||
"@typescript-eslint/unbound-method": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["src/decode-history-worker.ts"],
|
||||
languageOptions: {
|
||||
|
||||
Reference in New Issue
Block a user