Options
The implementation of JSLint accepts an option object that allows you to determine the subset of JavaScript that is acceptable to you. It is also possible to set those options within the source of a script.
An option specification can look like this:
/*jslint nomen: true, evil: false */
An option specification starts with /*jslint.
Notice that there is no space before the j. The
specification contains a sequence of name/value pairs, where the names are JSLint
options and the values are true or false. An option specification takes precedence over
the option object. All of the options default to false. Table C-1 lists the options available
in using JSLint.
Table C-1. JSLint options
|
Option |
Meaning |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access