# no-incomplete-accessor-override

Rule `unicorn/no-incomplete-accessor-override`. Disallow class accessors that hide an inherited getter or setter.

- Source: unicorn
- Technologies: JavaScript
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 9.9M weekly downloads of presets that enable it
- Trend: +28.3% last quarter
- Rank: #927 by reach, #1182 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```js
class Base {
  get value() {
    return this._value;
  }
}

class Child extends Base {
  set value(value) {
    this._value = value;
  }
}
```

### Correct: the rule accepts this

```js
class Child extends Base {
  get value() {
    return super.value;
  }

  set value(value) {
    this._value = value;
  }
}
```

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-incomplete-accessor-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-impossible-length-comparison](https://lintradar.dev/rules/unicorn/no-impossible-length-comparison.md): Disallow impossible comparisons against `.length` or `.size`.
- [unicorn/no-ineffective-csp-directives](https://lintradar.dev/rules/unicorn/no-ineffective-csp-directives.md): Disallow ineffective CSP directives in `<meta>` elements.
- [unicorn/no-global-object-property-assignment](https://lintradar.dev/rules/unicorn/no-global-object-property-assignment.md): Disallow assigning properties on the global object.
- [unicorn/no-invalid-boolean-attribute-value](https://lintradar.dev/rules/unicorn/no-invalid-boolean-attribute-value.md): Disallow invalid values for HTML boolean attributes.
- [unicorn/no-exports-in-scripts](https://lintradar.dev/rules/unicorn/no-exports-in-scripts.md): Disallow exports in scripts.
- [unicorn/no-invalid-character-comparison](https://lintradar.dev/rules/unicorn/no-invalid-character-comparison.md): Disallow comparing a single character from a string to a multi-character string.

---

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