Is it possible to disable the red dots / error messages?

I am using a library (p5.js) which leads to a lot of “X is undefined” errors despite the code working just fine. Any way to disable these red dots?

3 Likes

Hey @flomerboy, welcome to the Glitch forum!

Glitch supports eslintrc.json files at the root of your project’s directory, so placing a file named .eslintrc.json in your project’s top-level directory with content like

{
  "rules": {
    "no-use-before-define": "off"
  },
  "env": {
    "browser": true,
    "node": true,
    "es6": true
  }
}

may go a long way towards clearing up those little red dots for you.

Hope this helps!

4 Likes

Thank you so much!! This worked perfectly.

Matt DesLauriers has created quite an extensive .eslintrc.json file for his projects here: https://p5-demos.glitch.me/
Click on any example to see it - seems like a good starting point.

1 Like