sindresorhus/eslint-plugin-unicorn

Rule proposal: `no-non-exists-builtin-properties`

Closed

#2,225 opened on Dec 1, 2023

 (2 comments) (1 reaction) (0 assignees)JavaScript (468 forks)user submission
help wantednew rule

Repository metrics

Stars
 (5,022 stars)
PR merge metrics
 (Avg merge 1d 16h) (399 merged PRs in 30d)

Description

Description

I've made two mistakes recently when using Object.entries(), they are just typos, but spell check didn't pick them since they are words.

I used Object.entires() in one place, and Object.entire() in another place :smile: .

Fail

Math.NON_EXISTS_PROPERTY
Promise.nonExistsMethod()
Function.once()

Pass

Math.PI
Promise.race()

Additional Info

No response

Contributor guide