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
This commit is contained in:
silverwind
2026-06-09 12:19:28 +02:00
parent c1e928ca96
commit 05aa93e0b6
+1 -1
View File
@@ -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],