# noUntrustedLicenses

Rule `biome/noUntrustedLicenses`. Disallow dependencies with untrusted licenses.

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noUntrustedLicenses` | no | no | group suspicious, since 2.4.9 | [docs](https://biomejs.dev/linter/rules/no-untrusted-licenses/) |

## Code examples

### Incorrect: the rule reports this

```json
{
    "dependencies": {
        "untrusted-pkg": "^1.0.0"
    }
}
```

```json
{
    "devDependencies": {
        "no-license-pkg": "^1.0.0"
    }
}
```

### Correct: the rule accepts this

```json
{
    "dependencies": {
        "trusted-pkg": "^1.0.0"
    }
}
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

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

## Related rules

- [biome/noUnsafeTypeAssertion](https://lintradar.dev/rules/biome/noUnsafeTypeAssertion.md): Disallow TypeScript type assertions other than const assertions.
- [biome/noUnusedClasses](https://lintradar.dev/rules/biome/noUnusedClasses.md): Reports CSS class selectors that are never referenced in any JSX or HTML file.
- [biome/noUndeclaredCustomProperties](https://lintradar.dev/rules/biome/noUndeclaredCustomProperties.md): Reports custom properties used with `var()` that have no visible declaration.
- [biome/useAstroClientOnlyDirectiveValue](https://lintradar.dev/rules/biome/useAstroClientOnlyDirectiveValue.md): Require a value for Astro's `client:only` directive.
- [biome/noUndeclaredClasses](https://lintradar.dev/rules/biome/noUndeclaredClasses.md): Reports CSS class names in JSX `className` or `class` attributes that are not defined in any imported CSS file.
- [biome/useAwaitThenable](https://lintradar.dev/rules/biome/useAwaitThenable.md): Enforce that `await` is _only_ used on `Promise` values.

---

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