Skip to content

no-negated-v-if-condition: promote suggestions to autofixesΒ #2979

@andreww2012

Description

@andreww2012

What rule do you want to change?

no-negated-v-if-condition

Does this change cause the rule to produce more or fewer warnings?

N/A

How will the change be implemented? (New option, new default behavior, etc.)?

no-negated-v-if-condition's suggestion to swap elements can be safely replaced with autofix, which would enhance DX and bring the rule on par with the similar rules.

Please provide some example code that this change will affect:

N/A

What does the rule currently do for this code?

What will the rule do after it's changed?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions