-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.eslintrc
68 lines (66 loc) · 1.96 KB
/
.eslintrc
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
{
"extends" : ["pedant"],
"plugins" : [
"bem-xjst"
],
"parserOptions" : {
"ecmaVersion" : 6,
"sourceType" : "module"
},
"env" : {
"browser" : true,
"node": true,
"es6": true,
"bem-xjst/bemhtml": true,
"bem-xjst/bemtree": true
},
"globals" : {
"modules" : false,
"io" : false,
"Highcharts" : false,
"Plotly" : false
},
"rules" : {
"semi" : "error",
"indent" : ["error", 4, {
"FunctionDeclaration": { "body": 1, "parameters": 1 },
"FunctionExpression": { "body": 1, "parameters": 1 }
}],
"no-shadow" : "off",
"no-cond-assign" : "off",
"no-unused-expressions" : "off",
"no-return-assign" : "off",
"no-mixed-spaces-and-tabs" : "error",
"max-len" : ["error", { "code" : 120 }],
"eol-last" : "error",
"no-unused-vars" : ["error", {
"vars" : "all",
"args" : "none"
}],
"curly" : ["error", "multi"],
"key-spacing" : ["error", {
"beforeColon" : true,
"afterColon" : true,
"mode" : "strict"
}],
"object-curly-spacing" : ["error", "always"],
"keyword-spacing" : ["error", {
"before" : true,
"after" : true,
"overrides" : {
"if" : { "after" : false },
"for" : { "after" : false },
"while" : { "after" : false },
"switch" : { "after" : false },
"catch" : { "after" : false }
}
}],
"array-bracket-spacing" : ["error", "never"],
"func-call-spacing" : "error",
"space-before-blocks" : ["error", "always"],
"quotes" : ["error", "single", { "avoidEscape" : true }],
"camelcase" : ["error", { "properties" : "never" }],
"no-trailing-spaces" : "error",
"comma-dangle" : ["error", "never"],
}
}