no-obj-calls
Configuration
rslint.config.ts
Rule Details
Disallows calling global objects (Math, JSON, Reflect, Atomics, Intl) as functions or constructors. These are namespace objects that provide properties and methods but are not themselves callable. Attempting to call them will throw a TypeError at runtime.
Examples of incorrect code for this rule:
Examples of correct code for this rule: