From 767f77fea35720de124504064b529761f4dc25d1 Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins Date: Sat, 14 Mar 2026 01:47:17 +0000 Subject: [PATCH] [AI] Enable more lint rules as warn for gradual fix (7196) (#7196) --- .oxlintrc.json | 6 ++++++ upcoming-release-notes/7196.md | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 upcoming-release-notes/7196.md diff --git a/.oxlintrc.json b/.oxlintrc.json index 49ab8037bc..3d13385eb6 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -101,12 +101,18 @@ "typescript/no-var-requires": "error", // we want to allow unions such as "{ name: DbAccount['name'] | DbPayee['name'] }" "typescript/no-duplicate-type-constituents": "off", + // we want to allow unions such as "string | 'network' | 'file-key-mismatch'" + "typescript/no-redundant-type-constituents": "off", "typescript/await-thenable": "error", "typescript/no-floating-promises": "error", "typescript/require-array-sort-compare": "error", "typescript/unbound-method": "error", "typescript/no-for-in-array": "error", "typescript/restrict-template-expressions": "error", + "typescript/no-misused-spread": "warn", // TODO: enable this + "typescript/no-base-to-string": "warn", // TODO: enable this + "typescript/no-unsafe-unary-minus": "warn", // TODO: enable this + "typescript/no-unsafe-type-assertion": "warn", // TODO: enable this // Import rules "import/consistent-type-specifier-style": "error", diff --git a/upcoming-release-notes/7196.md b/upcoming-release-notes/7196.md new file mode 100644 index 0000000000..79942e0a02 --- /dev/null +++ b/upcoming-release-notes/7196.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [MatissJanis] +--- + +lint: enable more lint rules that should be fixed over time