# Autocomplete - eslint is flagging use of $

**URL:** <https://meta.discourse.org/t/autocomplete-eslint-is-flagging-use-of/335611>\
**Category:** Development\
**Created:** [November 11, 2024, 3:44pm UTC](https://meta.discourse.org/t/autocomplete-eslint-is-flagging-use-of/335611 "2024-11-11T15:44:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [November 11, 2024, 3:44pm UTC](https://meta.discourse.org/t/autocomplete-eslint-is-flagging-use-of/335611/1 "2024-11-11T15:44:36Z")

</div>

What’s the recommended approach to implementing Autocomplete if the use of $ and jquery in general is discouraged?

I note there is still a lot of apparent reliance on $().autocomplete in the core codebase?

But my plugin javascript code is making eslint sad ☹

```plaintext
error Do not use global `$` or `jQuery` ember/no-global-jquery

```

I can get rid of this by adding this import:

```plaintext
import $ from 'jquery';

```

But should we be shooting for a completely native solution without jquery now or is this good enough?

---

_[View the full topic](https://meta.discourse.org/t/autocomplete-eslint-is-flagging-use-of/335611)._
