wikimedia / eslint-plugin-no-jquery

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

Bug: no-sizzle disallows regular selectors #295

Closed kkmuffme closed 2 years ago

kkmuffme commented 2 years ago

config: [{"allowPositional":false,"allowOther":true}]

I get an error from no-sizzle for: jQuery( 'th:nth-child(3)' )

However, this is regular JS syntax. e.g. the same selector with vanilla JS document.querySelectorAll( 'th:nth-child(3)' ) works fine too. Those should not give an error.

edg2s commented 2 years ago

Thanks, fixed! (#297)