# Trouble with eslint

**URL:** <https://meta.discourse.org/t/trouble-with-eslint/318178>\
**Category:** Development\
**Created:** [July 24, 2024, 5:54pm UTC](https://meta.discourse.org/t/trouble-with-eslint/318178 "2024-07-24T17:54:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [July 26, 2024, 7:42pm UTC](https://meta.discourse.org/t/trouble-with-eslint/318178/7 "2024-07-26T19:42:43Z")

</div>

OMG. I’d just managed to fix it in some way that was completely impossible to reproduce, so this is a lifesaver. And now I’ve added it to my magic file so this might work next time

```bash
if [["$ARG" == 'fix-eslint']]
then
  cd ~/src/discourse-repos/discourse
  yarn
  for x in ~/plugins/* 
  do
    yarn eslint --fix x
  done
fi

```

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-eslint/318178)._
