no-prototype-builtins
Configuration
rslint.config.ts
Rule Details
This rule disallows calling Object.prototype methods directly on object
instances. In particular, it flags calls to hasOwnProperty, isPrototypeOf,
and propertyIsEnumerable invoked as members of a target object. Such calls
can break on objects created with Object.create(null) (which do not inherit
from Object.prototype) or on objects that define shadowing properties with
the same names.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
This rule has no options.