Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions web/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export default tseslint.config(
'warn',
{ allowConstantExport: true },
],
// When you don't need the error value, use `catch { }` (no binding).
// Using a named binding like `catch (err)` when err is never referenced
// is flagged as a new baseline violation and will block the nightly
// release (see issues #21352/#21353). Prefix with _ (e.g. `catch (_err)`)
// only when you need the type annotation but not the value.
'@typescript-eslint/no-unused-vars': ['warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
Expand Down
2 changes: 2 additions & 0 deletions web/scripts/lint-baseline-check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ if (newEntries.length > 0) {
}
});
console.log('\n❌ CI fails on new violations. Fix them or update baseline after review.');
console.log(' Tip: For unused catch bindings (no-unused-vars), use `catch { }` instead');
console.log(' of `catch (err)` when you don\'t need the error value. See eslint.config.js.');
process.exit(1);
}

Expand Down
Loading