'How to make Quokka.js Untitled file to be ignored by Eslint?
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 a last option due to complexity.)
Solution 1:[1]
in your eslintrc.json add
"files": [
{
"patterns": "**/*()" // For Quokka files -> dont have a valid file extension
}
],
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tobi |
