Fix eslint issues
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3562239. -->
Reported by: [markconroy](https://www.drupal.org/user/336910)
Related to !2
>>>
<p>Original issue: <a href="https://github.com/localgovdrupal/localgov_directories/pull/450">https://github.com/localgovdrupal/localgov_directories/pull/450</a></p>
issue