ember-cli / ember-cli/eslint-plugin-ember
False negative for jquery-ember-run for many jquery element references
Open
bug
- Dominant language
- JavaScript
- Stars
- 263
- Forks
- 214
- Avg merge
- 30m
- Merged PRs (30d)
- 5
Description
```js
import $ from "jquery";
const $el = $("#item");
$el.on("click", () => this.handle());
```
passes, but it should fail.
```js
import $ from "jquery";
const $parent = $("
Click Me
");
$parent.find("button").on("click", () => this.handle());
```
should also fail, but passes.
I agree that the rule should not trigger for arbitrary `someVar.on("click", callback)` scenarios, but when the property is known to be a jQuery element reference, it should trigger.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.