# no-obj-calls

Rule `eslint/no-obj-calls`. Disallow calling global object properties as functions

- Source: eslint
- Technologies: JavaScript
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 278.7M weekly downloads of presets that enable it
- Trend: +45.0% last quarter
- Rank: #18 by reach, #917 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `no-obj-calls` | yes | no | package `eslint` | [docs](https://eslint.org/docs/latest/rules/no-obj-calls) |
| Oxlint | `no-obj-calls` | yes | no | plugin `eslint`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-obj-calls.html) |
| Biome | `correctness/noGlobalObjectCalls` | yes | no | group correctness, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-global-object-calls/) |

## Code examples

### Incorrect: the rule reports this

```js
const math = Math();

const newMath = new Math();

const json = JSON();

const newJSON = new JSON();

const reflect = Reflect();

const newReflect = new Reflect();

const atomics = Atomics();

const newAtomics = new Atomics();

const intl = Intl();

const newIntl = new Intl();

const temporal = Temporal();

const newTemporal = new Temporal();

const globalObject = globalThis();

const newGlobalObject = new globalThis();
```

### Correct: the rule accepts this

```js
function area(r) {
    return Math.PI * r * r;
}

const object = JSON.parse("{}");

const value = Reflect.get({ x: 1, y: 2 }, "x");

const first = Atomics.load(foo, 0);

const segmenterFr = new Intl.Segmenter("fr", { granularity: "word" });

const instant = Temporal.Now.instant();

const parsed = globalThis.parseInt("42", 10);
```

Examples from the ESLint documentation.

## Enable it

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

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

### Oxlint: `.oxlintrc.json`

```json
{
  "rules": {
    "no-obj-calls": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noGlobalObjectCalls": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [ESLint recommended](https://lintradar.dev/presets/eslint-recommended.md) | ESLint | `@eslint/js` | 64 | 178.8M | +25.9% |
| [Oxlint default](https://lintradar.dev/presets/oxlint-default.md) | Oxlint | `oxlint` | 111 | 50.8M | +183.6% |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Airbnb base](https://lintradar.dev/presets/airbnb-base.md) | ESLint | `eslint-config-airbnb-base` | 241 | 6.5M | +2.1% |
| [Create React App](https://lintradar.dev/presets/react-app.md) | ESLint | `eslint-config-react-app` | 109 | 4.1M | +4.3% |
| [Airbnb](https://lintradar.dev/presets/airbnb.md) | ESLint | `eslint-config-airbnb` | 346 | 3.4M | +2.3% |
| [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% |
| [React Native](https://lintradar.dev/presets/react-native.md) | ESLint | `@react-native/eslint-config` | 79 | 1.2M | +5.8% |
| [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-func-assign](https://lintradar.dev/rules/eslint/no-func-assign.md): Disallow reassigning `function` declarations
- [eslint/no-unreachable](https://lintradar.dev/rules/eslint/no-unreachable.md): Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements
- [eslint/no-dupe-keys](https://lintradar.dev/rules/eslint/no-dupe-keys.md): Disallow duplicate keys in object literals
- [eslint/no-debugger](https://lintradar.dev/rules/eslint/no-debugger.md): Disallow the use of `debugger`
- [eslint/no-const-assign](https://lintradar.dev/rules/eslint/no-const-assign.md): Disallow reassigning `const`, `using`, and `await using` variables
- [eslint/no-extra-boolean-cast](https://lintradar.dev/rules/eslint/no-extra-boolean-cast.md): Disallow unnecessary boolean casts

---

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