Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

v1.12.0 bug: disallowIdentifierNames rule disallows toString, valueOf, propertyIsEnumerable, __proto__ #1203

@ljharb

Description

@ljharb

I'm explicitly passing [], and it's disallowing toString, valueOf, __proto__, isPrototypeOf, constructor, toLocaleString, and propertyIsEnumerable in my projects.

I'm not sure exactly why, but perhaps the way you're iterating the identifiers array is incorrect - perhaps you're iterating over the entire prototype, instead of just own properties, or using Array#forEach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions