Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/complexity/no-negated-group

In the code-quality set. Safe fix.

What it does

Simplify negated conditions with de Morgan theorem

Configuration

[lint.rules]
"complexity/no-negated-group" = "error"

To skip it in some files or lines, add an override or an ignore comment.

Options

Name Type Allowed values Default Upstream name
checks list ands, de-morgan ["ands", "de-morgan"] None (Pun’s own)

Replaces

Merged rules

These old IDs are now this rule. A config that still names one stops with an error. See merged rules.

  • lint/complexity/no-negated-and

More lint/complexity rules · Edit this page

Last updated on

Was this page helpful?