-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslint.json
90 lines (90 loc) · 2.22 KB
/
.eslint.json
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
81
82
83
84
85
86
87
88
89
90
{
"env": {
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"strict": "off",
"quotes": ["error", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"no-undef": "error",
"no-unused-vars": ["error", {
"args": "none"
}],
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"indent": ["error", 2, {
"SwitchCase": 1
}],
"no-octal": "off",
"no-multiple-empty-lines": ["error", {
"max": 1
}],
"no-debugger": "error",
"no-empty": ["error", {
"allowEmptyCatch": true
}],
"no-template-curly-in-string": "warn",
"no-unreachable": "error",
"valid-typeof": "error",
"dot-notation": ["error", {
"allowKeywords": false
}],
"eqeqeq": "error",
"no-extend-native": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-sequences": "error",
"wrap-iife": ["error", "inside"],
"yoda": ["error", "never"],
"no-path-concat": "error",
"array-bracket-spacing": ["error", "always", {
"singleValue": false,
"objectsInArrays": false,
"arraysInArrays": false
}],
"brace-style": ["error", "1tbs"],
"camelcase": ["error", {
"properties": "always"
}],
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"comma-style": ["error", "last"],
"consistent-this": ["error", "self"],
"func-style": ["error", "expression", {
"allowArrowFunctions": true
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
"mode": "strict"
}],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"no-lonely-if": "error",
"no-tabs": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always", {
"arraysInObjects": false,
"objectsInObjects": false
}],
"object-property-newline": "error",
"semi": ["error", "always", {
"omitLastInOneLineBlock": true
}],
"space-before-blocks": ["error", "always"],
"arrow-spacing": ["error", {
"before": true,
"after": true
}],
"prefer-template": "error",
"no-const-assign": "error"
}
}