-
Notifications
You must be signed in to change notification settings - Fork 1
/
.lintrc
80 lines (80 loc) · 2.55 KB
/
.lintrc
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"html":{
"suffix":["html","htm"],
"rules":{
"tag-self-close": true,
"doctype-first": false,
"meta-charset": true,
"src-not-empty": true,
"id-class-value": "dash",
"button-type-require": true,
"link-rel-require": true,
"style-disabled": true,
"img-size": true
}
},
"css":{
"suffix": "css",
"ignore":[],
"rules":{}
},
"js":{
"suffix":["js"],
"env":{
"browser":true,
"node":true
},
"globals":{
"$":true,
"jQUery":true,
"angular":true
},
"extends":"eslint:recommended",
"rules":{
"eol-last": 1,
"no-trailing-spaces":1,
"indent": [2, 4, {"SwitchCase": 1}],
"space-infix-ops": 2,
"space-unary-ops":2,
"space-before-blocks":2,
"space-before-keywords":2,
"key-spacing":2,
"no-spaced-func":2,
"space-before-function-paren":[2,{ "anonymous": "always", "named": "never" }],
"semi-spacing":[2,{"before": false, "after": true}],
"comma-spacing": [2,{"before": false, "after": true}],
"space-in-parens":[2,"never"],
"max-len":[2,120],
"operator-linebreak":[2,"before"],
"comma-style":2,
"brace-style": [1, "1tbs",{ "allowSingleLine": true }],
"semi":[2,"always"],
"curly":[2,"all"],
"wrap-iife":[2,"inside"],
"camelcase":[2,{"properties": "never"}],
"new-cap":2,
"id-length":[2,{"exceptions":["i","j","k"]}],
"no-inline-comments":2,
"spaced-comment":2,
"lines-around-comment":[2,{"beforeLineComment":true}],
"no-use-before-define":[2,"nofunc"],
"one-var":[2,"never"],
"eqeqeq":[2,"allow-null"],
"no-else-return":1,
"no-loop-func":1,
"radix":2,
"quotes":[2,"single"],
"no-new-object":2,
"quote-props":[1,"consistent-as-needed",{ "keywords": true }],
"no-extend-native":2,
"dot-notation":[1,{ "allowKeywords": false ,"allowPattern": "^[a-z]+([-_][a-z]+)+$"}],
"guard-for-in":1,
"no-array-constructor":2,
"max-params":[1,6],
"no-new-func":1,
"no-eval":2,
"no-implied-eval":1,
"no-with":1
}
}
}