From 05aa93e0b69355ac34b47e2b4156ed2e4f8c0197 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 9 Jun 2026 12:19:28 +0200 Subject: [PATCH] chore: correct `unicorn/no-this-outside-of-class` comment The previous wording called the matches false-positives; they are intentional `this` usages in non-class functions (jQuery/fomantic callbacks, object methods). Assisted-by: claude-code:opus-4.8 --- eslint.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.ts b/eslint.config.ts index 58274becdc..9dd4ac931a 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -792,7 +792,7 @@ export default defineConfig([ 'unicorn/no-static-only-class': [2], 'unicorn/no-thenable': [2], 'unicorn/no-this-assignment': [2], - 'unicorn/no-this-outside-of-class': [0], // false-positives on `this` in standalone functions + 'unicorn/no-this-outside-of-class': [0], // gitea uses `this` in non-class functions 'unicorn/no-typeof-undefined': [2], 'unicorn/no-unnecessary-array-flat-depth': [2], 'unicorn/no-unnecessary-array-splice-count': [2],