# no-useless-call

Rule `eslint/no-useless-call`. Disallow unnecessary calls to `.call()` and `.apply()`

- Source: eslint
- Technologies: JavaScript
- Kind: performance
- Needs type information: no
- Autofix: no
- Reach: 35.4M weekly downloads of presets that enable it
- Trend: +89.5% last quarter
- Rank: #454 by reach, #293 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `no-useless-call` | no | no | package `eslint` | [docs](https://eslint.org/docs/latest/rules/no-useless-call) |
| Oxlint | `no-useless-call` | no | no | plugin `eslint`, category perf | [docs](https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-call.html) |
| Biome | `nursery/noUselessCall` | yes | no | group nursery, since 2.6.0 | [docs](https://biomejs.dev/linter/rules/no-useless-call/) |

## Code examples

### Incorrect: the rule reports this

```js
// These are same as `foo(1, 2, 3);`
foo.call(undefined, 1, 2, 3);
foo.apply(undefined, [1, 2, 3]);
foo.call(null, 1, 2, 3);
foo.apply(null, [1, 2, 3]);

// These are same as `obj.foo(1, 2, 3);`
obj.foo.call(obj, 1, 2, 3);
obj.foo.apply(obj, [1, 2, 3]);
```

### Correct: the rule accepts this

```js
// The `this` binding is different.
foo.call(obj, 1, 2, 3);
foo.apply(obj, [1, 2, 3]);
obj.foo.call(null, 1, 2, 3);
obj.foo.apply(null, [1, 2, 3]);
obj.foo.call(otherObj, 1, 2, 3);
obj.foo.apply(otherObj, [1, 2, 3]);

// The argument list is variadic.
// Those are warned by the `prefer-spread` rule.
foo.apply(undefined, args);
foo.apply(null, args);
obj.foo.apply(obj, args);
```

Examples from the ESLint documentation.

## Enable it

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

```js
export default [
  {
    rules: {
      "no-useless-call": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "rules": {
    "no-useless-call": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noUselessCall": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [JavaScript Standard Style](https://lintradar.dev/presets/standard.md) | ESLint | `eslint-config-standard` | 161 | 3.1M | +12.9% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |
| [neostandard](https://lintradar.dev/presets/neostandard.md) | ESLint | `neostandard` | 95 | 317.6K | +50.2% |
| [eslint-config-love](https://lintradar.dev/presets/love.md) | ESLint | `eslint-config-love` | 258 | 171.7K | +39.3% |
| [Alloy](https://lintradar.dev/presets/alloy.md) | ESLint | `eslint-config-alloy` | 166 | 31.4K | +32.4% |

## Related rules

- [eslint/no-inner-declarations](https://lintradar.dev/rules/eslint/no-inner-declarations.md): Disallow variable or `function` declarations in nested blocks
- [eslint/prefer-numeric-literals](https://lintradar.dev/rules/eslint/prefer-numeric-literals.md): Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals
- [eslint/no-constructor-return](https://lintradar.dev/rules/eslint/no-constructor-return.md): Disallow returning value from constructor
- [eslint/prefer-template](https://lintradar.dev/rules/eslint/prefer-template.md): Require template literals instead of string concatenation
- [eslint/prefer-exponentiation-operator](https://lintradar.dev/rules/eslint/prefer-exponentiation-operator.md): Disallow the use of `Math.pow` in favor of the `**` operator
- [eslint/radix](https://lintradar.dev/rules/eslint/radix.md): Enforce the use of the radix argument when using `parseInt()`

---

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