4

I have a JS project with strict ESLint rules and "eslint.run": "onType" setting. I would like to ignore new Quokka.js Untitled editors, which are just a playground and I do not want to bother with clean syntax there. Is there any way how to disable VS Code ESLint for Quokka Untitled editors?

A possible workaround could be to automatically add a line /* eslint-disable */ to every Quokka.js New JavaScript File, but I also do not know if it's possible. (Maybe by a Quokka.js plugin, but that's the last option due to complexity.)

xmedeko
  • 7,336
  • 6
  • 55
  • 85

1 Answers1

-1

in your eslintrc.json add

"files": [ 
  {
    "patterns": "**/*()" // For Quokka files -> dont have a valid file extension
  }
],
Tobi
  • 363
  • 5
  • 15
  • This disables eslint in all files, including `*.js` files. (I have Windows OS). – xmedeko Mar 27 '22 at 19:07
  • 1
    true, I didnt check that. I have been playing around some more, but couldnt figure it out. I created an issue on github, you can track it if you want https://github.com/wallabyjs/quokka/issues/764 – Tobi Mar 27 '22 at 20:57