Skip to content

feat: surface bulk-suppressed ESLint violations as configurable diagnostics#2139

Open
wagenet wants to merge 1 commit intomicrosoft:mainfrom
wagenet:feat/bulk-suppression-diagnostics
Open

feat: surface bulk-suppressed ESLint violations as configurable diagnostics#2139
wagenet wants to merge 1 commit intomicrosoft:mainfrom
wagenet:feat/bulk-suppression-diagnostics

Conversation

@wagenet
Copy link
Copy Markdown

@wagenet wagenet commented Mar 17, 2026

Summary

  • Adds eslint.bulkSuppression setting (disabled by default — no behavior change for existing users)
  • When enabled, violations moved to suppressedMessages by ESLint's bulk suppression API (kind === "file") are emitted as VS Code diagnostics at a configurable severity (default: info)
  • Respects rulesCustomizations — rules set to off are still suppressed
  • Requires ESLint ≥ the version that merged applySuppressions constructor support (eslint/eslint#20565)

New setting

"eslint.bulkSuppression": {
  "enable": true,          // false by default
  "severity": "hint",      // "error" | "warn" | "info" | "hint", defaults to "info"
  "suppressionsLocation": "path/to/eslint-suppressions.json" // optional
}

Test plan

  • With enable: false (default), no change in behavior
  • With enable: true, open a file with a bulk-suppressed violation — it appears at the configured severity
  • The same violation does not appear in messages (ESLint moved it to suppressedMessages)
  • A rule customized to off via rulesCustomizations does not produce a bulk diagnostic
  • suppressionsLocation correctly overrides the default file path when set

🤖 Generated with Claude Code

…ostics

When `eslint.bulkSuppression.enable` is true, violations moved to
`suppressedMessages` by ESLint's bulk suppression API (kind === "file")
are emitted as VS Code diagnostics at a configurable severity (default:
info). Disabled by default — no behavior change for existing users.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wagenet
Copy link
Copy Markdown
Author

wagenet commented Mar 17, 2026

@microsoft-github-policy-service agree company="Optro"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant