-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lintrc
77 lines (77 loc) · 2.32 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
{
"html":{
"suffix":["html","htm"],
"rules":{
"id-name-unique":false,
"style-disabled":true,
"inline-style-disabled":true,
"doctype-first": false,
"title-tag-require": false,
"tagname-lowercase": true,
"tag-pair": true,
"attr-lowercase": false,
"spec-char-escape": false
}
},
"css":{
"suffix": "css",
"ignore":["hehe.js","test/*.js"],
"rules":{
"a-line-of-decl": {"level": 1},
"after-colon": {"level": 1},
"attribute-selector": {"level": 2},
"before-colon": {"level": 1},
"color-abbr": {"level": 1},
"content-double-quotation": {"level": 1},
"decl-comma": {"level": 1,"followedComma": " "},
"decl-end-of-semicolon": {"level": 1},
"disallow-import": {"level": 1},
"disallow-named-color": {"level": 1},
"disallow-quotes-in-url": {"level": 1},
"disallow-use-expression": {"level": 1},
"vendor-prefixes-sort": {"level": 1}
}
},
"js":{
"suffix":["js","es","es6"],
"ignore":["hehe.js","test/*.js"],
"extends":"eslint:recommended",
"env":{
"node": true,
"mocha":true
},
"plugins":[],
"fix":true,
"globals": {
"angular": true,
"jQuery":true,
"define":true,
"require":true
},
"rules": {
"quotes":[2,"single"],
"no-undef":2,
"no-func-assign":0,
"no-unexpected-multiline":2,
"block-scoped-var":2,
"curly":2,
"dot-location": [2, "property"],
"no-alert":[2],
"no-eval":[2],
"no-floating-decimal":[2],
"no-implied-eval":[2],
"no-lone-blocks":[2],
"no-loop-func":[2],
"no-multi-str":[2],
"no-new-func":[2],
"no-return-assign":[2],
"no-self-compare":[2],
"no-sequences":[2],
"no-unused-expressions":[2],
"no-delete-var":[2],
"no-undefined":[2],
"no-unused-vars":[2],
"no-use-before-define":[2,"nofunc"]
}
}
}