# no-uncalled-method

Rule `unicorn/no-uncalled-method`. Disallow referencing methods without calling them.

- 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: #1049 by reach, #1304 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```js
const sorted = array.sort;
```

```js
function normalize(string) {
  return string.toLowerCase;
}
```

### Correct: the rule accepts this

```js
const sorted = array.sort();
```

```js
function normalize(string) {
  return string.toLowerCase();
}
```

```js
array.sort.call(array);
```

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-uncalled-method": "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% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |

## Related rules

- [unicorn/no-top-level-side-effects](https://lintradar.dev/rules/unicorn/no-top-level-side-effects.md): Disallow top-level side effects in exported modules.
- [unicorn/no-undeclared-class-members](https://lintradar.dev/rules/unicorn/no-undeclared-class-members.md): Require class members to be declared.
- [unicorn/no-selector-as-dom-name](https://lintradar.dev/rules/unicorn/no-selector-as-dom-name.md): Disallow selector syntax in DOM names.
- [unicorn/no-unnecessary-array-flat-map](https://lintradar.dev/rules/unicorn/no-unnecessary-array-flat-map.md): Disallow unnecessary use of `Array#flatMap()`.
- [unicorn/no-optional-chaining-on-undeclared-variable](https://lintradar.dev/rules/unicorn/no-optional-chaining-on-undeclared-variable.md): Disallow optional chaining on undeclared variables.
- [unicorn/no-unnecessary-boolean-comparison](https://lintradar.dev/rules/unicorn/no-unnecessary-boolean-comparison.md): Disallow unnecessary comparisons against boolean literals.

---

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