-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnodelint.config.js
50 lines (46 loc) · 2.64 KB
/
nodelint.config.js
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* This is the default options file for nodelint
*
* Changes released into the Public Domain by tav <tav@espians.com>
* Options support added by Corey Hart <corey@codenothing.com>
*
*/
// set your options here
var options = {
//adsafe : false, // if ADsafe should be enforced
//bitwise : true, // if bitwise operators should not be allowed
browser : true, // if the standard browser globals should be predefined
//cap : false, // if upper case HTML should be allowed
//css : false, // if CSS workarounds should be tolerated
//debug : false, // if debugger statements should be allowed
//devel : false, // if logging should be allowed (console, alert, etc.)
eqeqeq : false, // if === should be required
//es5 : true, // if ES5 syntax should be allowed
//evil : false, // if eval should be allowed
forin : true, // if for in statements must filter
//fragment : false, // if HTML fragments should be allowed
//immed : true, // if immediate invocations must be wrapped in parens
//laxbreak : false, // if line breaks should not be checked
//newcap : true, // if constructor names must be capitalized
//nomen : false, // if names should be checked
//on : false, // if HTML event handlers should be allowed
onevar : false, // if only one var statement per function should be allowed
//passfail : false, // if the scan should stop on first error
plusplus : false, // if increment/decrement should not be allowed
//regexp : true, // if the . should not be allowed in regexp literals
//rhino : false, // if the Rhino environment globals should be predefined
undef : true, // if variables should be declared before used
//safe : false, // if use of some browser features should be restricted
//windows : false, // if MS Windows-specigic globals should be predefined
//strict : false, // require the "use strict"; pragma
//sub : false, // if all forms of subscript notation are tolerated
white : false, // if strict whitespace rules apply
//widget : false, // if the Yahoo Widgets globals should be predefined
//indent : 2, // set the expected indentation level
// the names of predefined global variables:
// the following are defined by nodejs itself
//predef : ['exports', 'module', 'require', 'process', '__filename', '__dirname', 'GLOBAL'],
// customise the error reporting -- the following colours the text red
error_prefix: '<br /><span style="color: #0000ff">',
error_suffix: '</span>: '
};