lint: fix sonarjs/no-dead-store issues (#23653)

This commit is contained in:
Matri Qi 2025-08-10 11:16:43 +08:00 • committed by GitHub
commit ea502d36a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 17 additions and 76 deletions

View file

@ -163,7 +163,7 @@ export default combine(
'sonarjs/single-char-in-character-classes': 'off',
'sonarjs/anchor-precedence': 'warn',
'sonarjs/updated-loop-counter': 'off',
'sonarjs/no-dead-store': 'warn',
'sonarjs/no-dead-store': 'error',
'sonarjs/no-duplicated-branches': 'warn',
'sonarjs/max-lines': 'warn', // max 1000 lines
'sonarjs/no-variable-usage-before-declaration': 'error',