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:
parent
c1e928ca96
commit
05aa93e0b6
@ -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],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user