-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
executable file
·27 lines (23 loc) · 1.34 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
// http://www.jshint.com/docs/options/
//"bitwise": true, // Prohibit the use of bitwise operators
//"camelcase": true, // Enforce camelCase or UPPER_CASE with underscores
"eqeqeq": true, // Require triple equals (===) for comparison
//"immed": true, // Require immediate invocations to be wrapped in parens e.g. (function () { } ());
"latedef": true, // Require variables/functions to be defined before being used
"newcap": true, // Require capitalization of all constructor functions e.g. new F()
"noarg": true, // Prohibit use of arguments.caller and arguments.callee
"quotmark": "single", // Only allow single quotes
"trailing": true, // Prohibit trailing whitespaces
//"undef": true, // Require all non-global variables to be declared (prevents global leaks)
"unused": true, // Require all declared vars to be used
"boss": true, // Tolerate assignments where comparisons would be expected
"eqnull": true, // Tolerate use of == null
"expr": true, // Allow expressions (e.g condition ? option : option)
"smarttabs": true, // Tolerate mixed tabs and spaces
"-W099": true, // Tolerate mixed tabs and spaces
"sub": true, // Tolerate using [] notation when it can still be expressed in dot notation
"browser": true,
"jquery": true,
"node": true
}