-
Notifications
You must be signed in to change notification settings - Fork 751
/
.eslintrc
103 lines (103 loc) · 3.25 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"root": true,
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 5
},
"rules": {
"array-bracket-newline": ["off", "consistent"],
"array-bracket-spacing": ["error", "never", {
"objectsInArrays": false,
"arraysInArrays": false
}],
"block-spacing": ["error", "always"],
"brace-style": "error",
"camelcase": ["error", {
"properties": "always"
}],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"curly": "error",
"eol-last": ["error", "always"],
"eqeqeq": [2, "allow-null"],
"func-call-spacing": ["error", "never"],
"indent": [ "error", 4, {
"SwitchCase": 1
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": ["error", {
"before": true,
"after": true
}],
"no-eval": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"no-undef": "error",
"no-undef-init": "error",
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
"no-unused-vars": ["error", {
"args": "none"
}],
"no-use-before-define": ["error", {
"functions": false
}],
"object-curly-spacing": ["error", "always"],
"one-var": ["error", "never"],
"one-var-declaration-per-line": ["error", "always"],
"operator-linebreak": "error",
"quotes": ["error", "double", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"semi": [ "error", "always" ],
"semi-spacing": ["error", {
"before": false,
"after": true
}],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": ["error", {
"words": true,
"nonwords": false
}],
"spaced-comment": ["warn", "always", {
"line": {
"exceptions": ["-", "+", "="]
},
"block": {
"exceptions": ["-", "+", "=", "*", "~"],
"balanced": true
}
}],
"strict": "error",
"switch-colon-spacing": ["error", { "after": true, "before": false }],
"valid-jsdoc": [ "warn", {
"prefer": {
"arg": "param",
"argument": "param",
"return": "returns"
},
"preferType": {
"boolean": "Boolean",
"number": "Number",
"object": "Object",
"string": "String"
},
"matchDescription": ".+",
"requireReturn": false,
"requireReturnType": true,
"requireParamDescription": true,
"requireReturnDescription": true
}]
}
}