wikimedia / eslint-plugin-no-jquery

Control allowance of certain jQuery functions, and suggest or autofix alternatives.
MIT License
32 stars 8 forks source link

Avoid `key in object` lookup #162

Closed edg2s closed 4 years ago

edg2s commented 4 years ago

This always returns true for keys in the Object prototype, for example when key is 'constructor', so this was inadvertently disabling $.constructor.