# redundant-type-aliases

Rule `sonarjs/redundant-type-aliases`. Redundant type aliases should not be used

- Source: sonarjs
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 6.2M weekly downloads of presets that enable it
- Trend: +62.1% last quarter
- Rank: #1357 by reach, #658 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `sonarjs/redundant-type-aliases` | yes | no | package `eslint-plugin-sonarjs` | [docs](https://rules.sonarsource.com/javascript/RSPEC-6564/) |

## Enable it

### ESLint: `eslint.config.js`

```js
export default [
  {
    rules: {
      "sonarjs/redundant-type-aliases": "error",
    },
  },
];
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [SonarJS recommended](https://lintradar.dev/presets/sonarjs-recommended.md) | ESLint | `eslint-plugin-sonarjs` | 230 | 6.2M | +62.1% |

## Related rules

- [sonarjs/reduce-initial-value](https://lintradar.dev/rules/sonarjs/reduce-initial-value.md): "Array.reduce()" calls should include an initial value
- [sonarjs/regex-complexity](https://lintradar.dev/rules/sonarjs/regex-complexity.md): Regular expressions should not be too complicated
- [sonarjs/publicly-writable-directories](https://lintradar.dev/rules/sonarjs/publicly-writable-directories.md): Temporary files should not be created in publicly writable directories
- [sonarjs/review-blockchain-mnemonic](https://lintradar.dev/rules/sonarjs/review-blockchain-mnemonic.md): Wallet phrases should not be hard-coded
- [sonarjs/public-static-readonly](https://lintradar.dev/rules/sonarjs/public-static-readonly.md): Public "static" fields should be read-only
- [sonarjs/session-regeneration](https://lintradar.dev/rules/sonarjs/session-regeneration.md): A new session should be created during user authentication

---

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