# no-ignored-exceptions

Rule `sonarjs/no-ignored-exceptions`. Exceptions should not be ignored

- 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: #1283 by reach, #584 by growth

## Linters

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

## Enable it

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

```js
export default [
  {
    rules: {
      "sonarjs/no-ignored-exceptions": "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/no-identical-functions](https://lintradar.dev/rules/sonarjs/no-identical-functions.md): Functions should not have identical implementations
- [sonarjs/no-ignored-return](https://lintradar.dev/rules/sonarjs/no-ignored-return.md): Return values from functions without side effects should not be ignored
- [sonarjs/no-identical-expressions](https://lintradar.dev/rules/sonarjs/no-identical-expressions.md): Identical expressions should not be used on both sides of a binary operator
- [sonarjs/no-implicit-global](https://lintradar.dev/rules/sonarjs/no-implicit-global.md): Variables should be declared explicitly
- [sonarjs/no-identical-conditions](https://lintradar.dev/rules/sonarjs/no-identical-conditions.md): "if/else if" chains and "switch" cases should not have the same condition
- [sonarjs/no-in-misuse](https://lintradar.dev/rules/sonarjs/no-in-misuse.md): "in" should not be used on arrays

---

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