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 |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get JavaScript: The Good Parts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.