Skip to content

Feature: Inline suppressions #72

@marcinjosinski

Description

@marcinjosinski

Problem

Currently the only way to suppress diagnostics is through config-level ignore.rules and ignore.files, which operate globally. This means if you have one legitimate use of a pattern, you must silence the rule everywhere.

Proposal

Support inline suppression comments that disable specific rules on the next line only:

// react-doctor-disable-next-line react-doctor/no-array-index-as-key
{message.parts.map((part, index) => {

Thanks for the great tool

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions