Alex Rivera | Logout

JSLint to ignore undefined variables

Asked 2011-10-23T15:01:00.047
15

I have chopped my js program into many pieces for development. Now when I run one piece through JSLint, I get a lot of errors of the type:

Problem at line 48 character 42: 'XXXXXXX' was used before it was defined.

I've looked for an option "Tolerate undefined variables" but haven't found any such option. What can I do so that JSLint ignores undefined variables?

Edit
Report

1 Answer

-10

JSHint is a nice alternative to JSLint, and it has an option to turn on/off warnings for all undefined variables at once.

answered 2011-10-23T15:33:32.707

Your Answer