This repository has been archived by the owner on Dec 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
/
lint-config.js
60 lines (57 loc) · 2.93 KB
/
lint-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
51
52
53
54
55
56
57
58
59
60
/*
* 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>
*/
/*jslint indent: 4*/
var options = {
anon: true, // if the space may be omitted in anonymous function declarations
bitwise: true, // if bitwise operators should be allowed
browser: false, // if the standard browser globals should be predefined
cap: false, // if upper case HTML should be allowed
'continue': false, // if the continuation statement should be tolerated
css: false, // if CSS workarounds should be tolerated
debug: false, // if debugger statements should be allowed
devel: true, // if logging should be allowed (console, alert, etc.)
eqeq: false, // if == should be allowed
es5: true, // if ES5 syntax should be allowed
evil: false, // if eval should be allowed
forin: false, // if for in statements need not filter
fragment: false, // if HTML fragments should be allowed
indent: 2, // the indentation factor
maxerr: 50, // the maximum number of errors to allow
maxlen: 100, // the maximum length of a source line
newcap: false, // if constructor names capitalization is ignored
node: true, // if Node.js globals should be predefined
nomen: true, // if names may have dangling _
on: false, // if HTML event handlers should be allowed
passfail: false, // if the scan should stop on first error
plusplus: true, // if increment/decrement should be allowed
properties: false, // if all property names must be declared with /*properties*/
regexp: true, // if the . should be allowed in regexp literals // TODO: fix this later
rhino: false, // if the Rhino environment globals should be predefined
undef: false, // if variables can be declared out of order
unparam: false, // if unused parameters should be tolerated
sloppy: true, // if the 'use strict'; pragma is optional // TODO: fix this later
stupid: true, // if really stupid practices are tolerated // TODO: fix this later
sub: false, // if all forms of subscript notation are tolerated
vars: true, // if multiple var statements per function should be allowed
white: false, // if sloppy whitespace is tolerated
widget: false, // if the Yahoo Widgets globals should be predefined
windows: false, // if MS Windows-specific globals should be predefined
// the names of predefined global variables:
"predef": [
'cantas',
'_',
'jQuery',
'Backbone',
'$',
'window',
'jade',
'document',
'SORTABLE',
'markdown',
'moment'
]
};