# useSimplifiedLogicExpression

Rule `biome/useSimplifiedLogicExpression`. Discard redundant terms from logical expressions.

- Source: biome
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1558 by reach, #62 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `complexity/useSimplifiedLogicExpression` | no | safe | group complexity, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/use-simplified-logic-expression/) |

## Code examples

### Incorrect: the rule reports this

```js
const boolExp = true;
const r = true && boolExp;
```

```js
const boolExp2 = true;
const r2 = false || boolExp2;
```

```js
const boolExp3 = true;
if (boolExp3 || false) {
    doSomething();
}
```

### Correct: the rule accepts this

```js
const boolExpr3 = true;
const boolExpr4 = false;
const r5 = !(boolExpr1 && boolExpr2);
const boolExpr5 = true;
const boolExpr6 = false;
```

```js
const value = undefined;
const r6 = value || false;
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "complexity": {
        "useSimplifiedLogicExpression": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/useRequiredScripts](https://lintradar.dev/rules/biome/useRequiredScripts.md): Require configured scripts in `package.json`.
- [biome/useStaticResponseMethods](https://lintradar.dev/rules/biome/useStaticResponseMethods.md): Use static `Response` methods instead of `new Response()` constructor when possible.
- [biome/useNodeAssertStrict](https://lintradar.dev/rules/biome/useNodeAssertStrict.md): Prefer `node:assert/strict` over `node:assert`.
- [biome/useTailwindSortedClasses](https://lintradar.dev/rules/biome/useTailwindSortedClasses.md): Enforce the sorting of Tailwind CSS classes.
- [biome/useLoneExecutableDefinition](https://lintradar.dev/rules/biome/useLoneExecutableDefinition.md): Require one executable GraphQL definition per file.
- [biome/useTopLevelRegex](https://lintradar.dev/rules/biome/useTopLevelRegex.md): Require regex literals to be declared at the top level.

---

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