-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jshintrc
36 lines (34 loc) · 1.82 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
28
29
30
31
32
33
34
35
36
// see http://jshint.com/docs/options/
{
"globals" : {"require": false, "module": false},
// "camelcase" : false,
"bitwise" : false, // allow bitwise operators (&, |, ^, etc.).
"curly" : true, // Require {} for every new block or scope.
"eqeqeq" : true, // Require triple equals i.e. `===`.
// "es3" : false,
"forin" : true, // Tolerate `for in` loops without `hasOwnPrototype`.
// "freeze" : false,
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
"indent" : 4,
"latedef" : true, // Prohibit variable use before definition.
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`.
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"noempty" : true, // Prohibit use of empty blocks.
"nonbsp" : true,
"nonew" : true, // Prohibit use of constructors for side-effects.
// "plusplus" : true, // Prohibit use of `++` & `--`.
// "quotmark" : false,
"regexp" : true, // Prohibit `.` and `[^...]` in regular expressions.
"undef" : true, // Require all non-global variables be declared before they are used.
"unused" : true,
"node" : true,
// "strict" : false, // Require `use strict` pragma in every file.
"trailing" : true, // Prohibit trailing whitespaces.
// "maxparams" : 1,
// "maxdepth" : 1,
// "maxstatements" : 1,
// "maxcomplexity" : 1,
// "maxlen" : 1,
"maxerr" : 10000, // Annoying when jshint stops partway through a file ... is 10K high enough?
"esversion" : 6
}