over_react_bool_prop_name_readability

Severity: AnalysisErrorSeverity.INFO

Maturity: stable

Since 1.0.0

View the Project on GitHub workiva/over_react

PREFER to name boolean props in a way that makes them easy to read.

GOOD:

mixin NavItemProps on UiProps {
  // Whether the item should appear active
  bool isActive;
}

BAD:

mixin NavItemProps on UiProps {
  // Whether the item should appear active
  bool active;
}