Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Complete list of default values for JSHint options?

Where can I get the complete list of JSHint default options. I tried searching online but couldn't find anything.

EDIT: I mean a list of default values for all options, in case it wasn't clear :)

like image 579
Himanshu P Avatar asked Mar 26 '13 16:03

Himanshu P


People also ask

What is JSHint library?

JSHint is a program that flags suspicious usage in programs written in JavaScript. The core project consists of a library itself as well as a CLI program distributed as a Node module.

Is JSHint deprecated?

Warning This option has been deprecated and will be removed in the next major release of JSHint. JSHint is limiting its scope to issues of code correctness. If you would like to enforce rules relating to code style, check out the JSCS project.

How do I ignore JSHint warning?

In October 2013 jshint added a way to ignore blocks of code like this: // Code here will be linted with JSHint. /* jshint ignore:start */ // Code here will be ignored by JSHint. /* jshint ignore:end */ // Code here will be linted with JSHint.


1 Answers

You can look on boolOptions, valOptions and invertedOptions objects directly in jshint sources:

https://github.com/jshint/jshint/blob/master/examples/.jshintrc

If you are confused with comments, you can refer to options section in jshint help:

http://jshint.com/docs/options/

like image 88
Mikhail Chernykh Avatar answered Oct 11 '22 08:10

Mikhail Chernykh