From fce0660464675f63e6e791b98040e622549181c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Fri, 12 Dec 2025 15:46:30 +0100 Subject: [PATCH] Had to disable no-unused-vars --- .oxlintrc.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.oxlintrc.json b/.oxlintrc.json index b5139cc1a57..d87ff840da9 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -12,7 +12,7 @@ // Disabled: ESLint uses allowTernary option which oxlint doesn't support "no-unused-expressions": "allow", // Disabled: use typescript/no-unused-vars for .ts files instead - "no-unused-vars": 0, + "no-unused-vars": "allow", // Disabled: not enabled in ESLint config "no-useless-rename": "allow", // Disabled: not enabled in ESLint config @@ -25,11 +25,10 @@ "typescript/no-explicit-any": "allow", // Disabled: oxlint doesn't support allowedNames option, ESLint allows "self" "typescript/no-this-alias": "allow", - // Matches ESLint: don't check unused function arguments - "typescript/no-unused-vars": [ - "error", - { "args": "none", "caughtErrors": "none", "varsIgnorePattern": "^_" } - ], + // Disabled: oxlint's args:"none" doesn't work for rest parameters (...args) + // See: https://github.com/oxc-project/oxc/issues/11147 + // Let ESLint's @typescript-eslint/no-unused-vars handle this instead + "typescript/no-unused-vars": "allow", // Requires --type-aware flag to work "typescript/no-misused-promises": "error", "no-restricted-imports": [ @@ -61,6 +60,7 @@ "jest.preset.js", "tailwind.config.js", "libs/components/tailwind.config.*.js", - "libs/nx-plugin/**" + "libs/nx-plugin/**", + "**/*.mjs" ] }