# noShoutyConstants

Rule `biome/noShoutyConstants`. Disallow constants whose string value is the same as their uppercase name.

- 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: #1546 by reach, #50 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `style/noShoutyConstants` | no | unsafe | group style, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-shouty-constants/) |

## Code examples

### Incorrect: the rule reports this

```js
const FOO = "FOO";
console.log(FOO);
```

### Correct: the rule accepts this

```js
let FOO = "FOO";
console.log(FOO);
```

```js
export const FOO = "FOO";
console.log(FOO);
```

```js
function f(FOO = "FOO") {
    return FOO;
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "noShoutyConstants": "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/noRootType](https://lintradar.dev/rules/biome/noRootType.md): Disallow configured GraphQL root operation types.
- [biome/noTopLevelLiterals](https://lintradar.dev/rules/biome/noTopLevelLiterals.md): Require the JSON top-level value to be an array or object.
- [biome/noRedundantDefaultExport](https://lintradar.dev/rules/biome/noRedundantDefaultExport.md): Checks if a default export exports the same symbol as a named export.
- [biome/noUnusedTemplateLiteral](https://lintradar.dev/rules/biome/noUnusedTemplateLiteral.md): Disallow template literals if interpolation and special-character handling are not needed
- [biome/noExportedImports](https://lintradar.dev/rules/biome/noExportedImports.md): Disallow exporting an imported variable.
- [biome/noUselessCatchBinding](https://lintradar.dev/rules/biome/noUselessCatchBinding.md): Disallow unused error parameters in `catch` clauses.

---

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