From 387924943bc4e5b9dba256ab3bcd758454b0a32b Mon Sep 17 00:00:00 2001 From: Kvan7 <71402892+Kvan7@users.noreply.github.com> Date: Tue, 7 Jul 2026 12:52:01 -0500 Subject: [PATCH] Update eslint.config.mjs --- main/eslint.config.mjs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/main/eslint.config.mjs b/main/eslint.config.mjs index 24c2b6f5..9bcb2668 100644 --- a/main/eslint.config.mjs +++ b/main/eslint.config.mjs @@ -74,7 +74,6 @@ export default defineConfig([ "promise/avoid-new": "off", "no-param-reassign": "off", "@typescript-eslint/class-methods-use-this": "off", - "@typescript-eslint/max-params": "warn", "@typescript-eslint/switch-exhaustiveness-check": "off", "@typescript-eslint/no-unnecessary-condition": "warn", "@typescript-eslint/require-await": "warn", @@ -84,6 +83,8 @@ export default defineConfig([ "@typescript-eslint/no-unsafe-type-assertion": "warn", "init-declarations": "off", "@typescript-eslint/init-declarations": "off", + "max-params": "off", + "@typescript-eslint/max-params": "off", }, }, { @@ -121,6 +122,22 @@ export default defineConfig([ "@eslint-community/eslint-comments/require-description": "off", }, }, + { + files: [ + "src/vision/opencv/CppAdapter.ts", + "src/vision/opencv/JsAdapter.ts", + ], + rules: { + "@typescript-eslint/no-unsafe-type-assertion": "off", + "@typescript-eslint/require-await": "off", + }, + }, + { + files: ["src/vision/**/*.ts"], + rules: { + "@typescript-eslint/no-magic-numbers": "off", + }, + }, prettierRecommended, ]);