Doctor · suppression

DOC0037Fix unknown Rule IDs in inline suppressions

An inline `doctor-disable` directive names a Rule ID that no Rule in its Rule Pack has, or a Diagnostic Code instead of a Rule ID.
vite-doctor/coresuppressioninfoAuto-fix
doctor/inline/unknown-suppression-rulesrc/core/internal/unused-suppressions.ts Upstream docs

Why it happens

Directives match Rule IDs only, so a removed or renamed Rule ID, or a Diagnostic Code such as VITE0009, suppresses nothing. Doctor reports an ID only when a loaded Rule Pack owns its namespace, so directives for Rule Packs that are not active in this Doctor Run stay unreported.

Fix

For a Diagnostic Code, write the Rule ID the message names if the Diagnostic should stay suppressed. Otherwise remove the ID, using the safe fix when available.

  • doctor/inline/unknown-suppression-rule
Copyright © 2026