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

#1

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?

#2

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!