# no-useless-override

Rule `unicorn/no-useless-override`. Disallow useless overrides of class methods.

- Source: unicorn
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 9.9M weekly downloads of presets that enable it
- Trend: +28.3% last quarter
- Rank: #963 by reach, #1218 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `unicorn/no-useless-override` | no | safe | package `eslint-plugin-unicorn` | [docs](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-override.md) |

## Code examples

### Incorrect: the rule reports this

```js
class Foo extends Bar {
  doThing(a, b) {
    return super.doThing(a, b);
  }
}
```

```js
class Foo extends Bar {
  render(...args) {
    super.render(...args);
  }
}
```

### Correct: the rule accepts this

```js
class Foo extends Bar {} // Inherits `doThing` from `Bar`.
```

```js
class Foo extends Bar {
  render(...args) {
    this.prepare();
    super.render(...args);
  }
}
```

```js
class Foo extends Bar {
  doThing(a) {
    return super.doThing(a, true);
  }
}
```

Examples from the ESLint documentation.

## Enable it

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

```js
import unicorn from "eslint-plugin-unicorn";

export default [
  {
    plugins: { unicorn },
    rules: {
      "unicorn/no-useless-override": "error",
    },
  },
];
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Unicorn recommended](https://lintradar.dev/presets/unicorn-recommended.md) | ESLint | `eslint-plugin-unicorn` | 340 | 9.5M | +30.3% |
| [Unicorn unopinionated](https://lintradar.dev/presets/unicorn-unopinionated.md) | ESLint | `eslint-plugin-unicorn` | 236 | 9.5M | +30.3% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |

## Related rules

- [unicorn/no-useless-logical-operand](https://lintradar.dev/rules/unicorn/no-useless-logical-operand.md): Disallow unnecessary operands in logical expressions involving boolean literals.
- [unicorn/no-useless-re-export](https://lintradar.dev/rules/unicorn/no-useless-re-export.md): Disallow redundant re-exports.
- [unicorn/no-useless-delete-check](https://lintradar.dev/rules/unicorn/no-useless-delete-check.md): Disallow unnecessary existence checks before deletion.
- [unicorn/no-using-resource-escape](https://lintradar.dev/rules/unicorn/no-using-resource-escape.md): Disallow returning or exporting resources declared with `using`, including through capturing functions.
- [unicorn/no-useless-continue](https://lintradar.dev/rules/unicorn/no-useless-continue.md): Disallow useless `continue` statements.
- [unicorn/prefer-add-event-listener-options](https://lintradar.dev/rules/unicorn/prefer-add-event-listener-options.md): Prefer an options object over a boolean in `.addEventListener()`.

---

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