0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-24 13:51:24 +02:00

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
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443

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],