Skip to content

negated rule API #3837

Open
Open
@abitrolly

Description

@abitrolly

I am trying add the new rule to fix #3810 and I find the lines around negated puzzling. For example,

const negated = (when?: string) => when === 'never';

Why each rule has to calculate this negated property?
Why it can not just receive the negated as a bool param?
Where this negated is realistically used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions