-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jshintrc
30 lines (23 loc) · 1.17 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
/*jshint quotmark: false */
{
"maxerr" : 50, // {int} Maximum error before stopping
"curly" : false, // true: Require {} for every new block or scope
// NOT DEFAULT
"indent" : 2, // Number of spaces to use for indentation
"latedef" : true, // true: Require variables/functions to be defined
// before being used.
"noempty" : true, // true: Prohibit use of empty blocks
// NOT DEFAULT
"plusplus" : false, // true: Prohibit use of `++` & `--`
"quotmark" : "single", // Quotation mark consistency:
"undef" : true, // true: Require all non-global variables to be
// declared (prevents global leaks)
"unused" : true,
"maxstatements" : false, // {int} Max number statements per function
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
"maxlen" : 80, // {int} Max number of characters per line
// Environments
"browser" : true, // Web Browser (window, document, etc)
// Custom Globals
"globals" : {} // additional predefined global variables
}