issues
search
wikimedia
/
eslint-plugin-no-jquery
Control allowance of certain jQuery functions, and suggest or autofix alternatives.
MIT License
31
stars
8
forks
source link
Improvements to `variable-pattern`
#159
Closed
edg2s
closed
5 years ago
edg2s
commented
5 years ago
Have
utils.isjQuery
return false for computed properties e.g.
foo[bar]
or
foo[$bar]
, as we don't know the name that will be used.
variable-pattern
will no trigger if the LHS has such a computed property, as we can't be certain it is an error.
utils.isjQuery
return false for computed properties e.g.foo[bar]
orfoo[$bar]
, as we don't know the name that will be used.variable-pattern
will no trigger if the LHS has such a computed property, as we can't be certain it is an error.