Skip to content

A local-first personal finance app

[AI] Enable more lint rules as warn for gradual fix (7196) (#7196)

Matiss Janis Aboltins767f77fea357
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