# useConsistentBooleanProps

Rule `biome/useConsistentBooleanProps`. Require a consistent style for JSX props with the value `true`

- Source: biome
- Technologies: React
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1953 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/useConsistentBooleanProps` | no | safe | group nursery, since 2.6.10 | [docs](https://biomejs.dev/linter/rules/use-consistent-boolean-props/) |

## Code examples

### Incorrect: the rule reports this

```jsx
<Foo bar />
```

### Correct: the rule accepts this

```jsx
<Foo bar={true} enabled={false} disabled={disabled} />
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useConsistentBooleanProps": "error"
      }
    }
  }
}
```

## Related rules

- [biome/useAwaitThenable](https://lintradar.dev/rules/biome/useAwaitThenable.md): Enforce that `await` is _only_ used on `Promise` values.
- [biome/useConsistentFontWeightNotation](https://lintradar.dev/rules/biome/useConsistentFontWeightNotation.md): Enforce a consistent notation for font weights.
- [biome/useAstroClientOnlyDirectiveValue](https://lintradar.dev/rules/biome/useAstroClientOnlyDirectiveValue.md): Require a value for Astro's `client:only` directive.
- [biome/useConsistentLightnessNotation](https://lintradar.dev/rules/biome/useConsistentLightnessNotation.md): Enforce a consistent notation for the lightness of colors.
- [biome/noUnusedClasses](https://lintradar.dev/rules/biome/noUnusedClasses.md): Reports CSS class selectors that are never referenced in any JSX or HTML file.
- [biome/useDeprecatedDate](https://lintradar.dev/rules/biome/useDeprecatedDate.md): Require a valid deletion date on the `@deprecated` directive.

---

Web page: https://lintradar.dev/rules/biome/useConsistentBooleanProps. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
