# noSecrets

Rule `biome/noSecrets`. Disallow usage of sensitive data such as API keys and tokens.

- Source: biome
- Technologies: JavaScript
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1936 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `security/noSecrets` | no | no | group security, since 1.9.0 | [docs](https://biomejs.dev/linter/rules/no-secrets/) |

## Code examples

### Incorrect: the rule reports this

```js
const secret = "AKIA1234567890EXAMPLE";
```

### Correct: the rule accepts this

```js
const nonSecret = "hello world";
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "security": {
        "noSecrets": "error"
      }
    }
  }
}
```

## Related rules

- [biome/noScssDeprecatedColorFunctions](https://lintradar.dev/rules/biome/noScssDeprecatedColorFunctions.md): Disallow the deprecated Sass functions that read one channel of a color.
- [biome/noSelfNestedLayer](https://lintradar.dev/rules/biome/noSelfNestedLayer.md): Disallow nesting a cascade layer inside a layer with the same name.
- [biome/noRestrictedDependencies](https://lintradar.dev/rules/biome/noRestrictedDependencies.md): Disallow dependencies that are known to have better alternatives.
- [biome/noShortTimeValues](https://lintradar.dev/rules/biome/noShortTimeValues.md): Disallow animation and transition times that are shorter than a configured minimum.
- [biome/noReExportAll](https://lintradar.dev/rules/biome/noReExportAll.md): Avoid re-export all.
- [biome/noSolidDestructuredProps](https://lintradar.dev/rules/biome/noSolidDestructuredProps.md): Disallow destructuring props inside JSX components in Solid projects.

---

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