fix: align vscode-ide-companion curly rule with root config (#6221)

The bare `curly: 'warn'` defaults to `'all'`, flagging single-line
guard statements (e.g. `if (!x) return;`). The root eslint.config.js
uses `['error', 'multi-line']` which only requires braces on
multi-line bodies. Align the package config to match, eliminating
10 false-positive warnings in AuthMessageHandler.ts and
settingsWriter.ts.
This commit is contained in:
易良 2026-07-03 15:15:23 +08:00 committed by GitHub
parent 8dfa7613be
commit 006ac59a33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ export default [
},
],
curly: 'warn',
curly: ['warn', 'multi-line'],
eqeqeq: ['warn', 'always', { null: 'ignore' }],
'no-throw-literal': 'warn',
semi: 'warn',