sindresorhus / eslint-plugin-unicorn

More than 100 powerful ESLint rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

fisker opened this issue Β· comments

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 πŸ˜„ .

Fail

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

Pass

Math.PI
Promise.race()

Additional Info

No response