JavaScript Error Detection

Hey guys,

I am new to Komodo IDE 10 and have been searching for how to have Komodo detect problems in my JS code. For example, it doesn’t show an error or warning if I reference a variable that doesn’t exist. It shows if I forget a semi-colon, but not the previously mentioned case. Is there a way to expand Komodo to catch all JS issues?


Open Preferences - Syntax Checking, pick Javascript and add undef=true to the JSHint options input.

Note: some references to global variables (such as console or navigator) will be undefined as well, so you have to add browser and devel into the input as well.

Here’s mine options:

esnext=true esversion=6 undef=true unused=true browser devel

You can review other options there:

1 Like