# noRedundantUseStrict

Rule `biome/noRedundantUseStrict`. Prevents from having redundant `"use strict"`.

- Source: biome
- Technologies: JavaScript
- Kind: suspicious
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #539 by reach, #174 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noRedundantUseStrict` | yes | safe | group suspicious, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-redundant-use-strict/) |

## Code examples

### Incorrect: the rule reports this

```js
"use strict";
function foo() {
   "use strict";
}
```

```js
"use strict";
"use strict";

function foo() {

}
```

```js
function foo() {
"use strict";
"use strict";
}
```

### Correct: the rule accepts this

```js
function foo() {

}
```

```js
 function foo() {
    "use strict";
}
function bar() {
    "use strict";
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noRedundantUseStrict": "error"
      }
    }
  }
}
```

## Presets that enable it

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

## Related rules

- [biome/noReactSpecificProps](https://lintradar.dev/rules/biome/noReactSpecificProps.md): Prevents React-specific JSX properties from being used.
- [biome/noScssNullComparison](https://lintradar.dev/rules/biome/noScssNullComparison.md): Disallow comparing values to `null` in Sass `@if` conditions.
- [biome/noReactNativeRawText](https://lintradar.dev/rules/biome/noReactNativeRawText.md): Disallow raw text outside `<Text>` components in React Native.
- [biome/noShorthandPropertyOverrides](https://lintradar.dev/rules/biome/noShorthandPropertyOverrides.md): Disallow shorthand properties that override earlier, more specific properties.
- [biome/noReactNativeDeepImports](https://lintradar.dev/rules/biome/noReactNativeDeepImports.md): Disallow deep imports from the `react-native` package.
- [biome/noStringCaseMismatch](https://lintradar.dev/rules/biome/noStringCaseMismatch.md): Disallow comparison of expressions modifying the string case with non-compliant value.

---

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