This repository has been archived by the owner on Sep 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
125 lines (125 loc) · 3.65 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"globalReturn": true,
"jsx": true,
"modules": false,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true
},
"env": {
"node": true
},
"root": true,
"rules": {
"array-bracket-spacing": [2, "never"],
"brace-style": [
2,
"1tbs",
{ "allowSingleLine": false }
],
"camelcase": 2,
"comma-dangle": [2, "always-multiline"],
"complexity": [2, 5],
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "self"],
"consistent-return": 2,
"curly": [2, "all"],
"dot-notation": 0,
"eqeqeq": [2, "allow-null"],
"guard-for-in": 2,
"indent": [2, 4, {"SwitchCase": 1}],
"jsx-quotes": 1,
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"max-depth": [2, 3],
"max-len": [2, 120],
"max-params": [2, 5],
"max-nested-callbacks": [2, 3],
"max-statements": [2, 50],
"new-cap": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-extend-native": 2,
"no-floating-decimal": 2,
"no-lodash-aliases": 2,
"no-lone-blocks": 2,
"no-loop-func": 2,
"no-multi-str": 2,
"no-native-reassign": 2,
"no-new": 2,
"no-new-wrappers": 2,
"no-redeclare": 2,
"no-redeclare-func": 2,
"no-trailing-spaces": 2,
"no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
"no-undef": 2,
"no-underscore-dangle": 0,
"no-use-before-define": 2,
"object-curly-spacing": [2, "never"],
"quotes": [2, "single"],
"semi-spacing": 2,
"strict": [2, "global"],
"space-after-keywords": [2, "always"],
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "never"
}
],
"space-infix-ops": 2,
"space-unary-ops": 2,
"valid-jsdoc": [
2,
{
"prefer": {
"virtual": "abstract",
"extends": "augments",
"constructor": "class",
"const": "constant",
"defaultvalue": "default",
"desc": "description",
"host": "external",
"fileoverview": "file",
"overview": "file",
"emits": "fires",
"func": "function",
"method": "function",
"var": "member",
"arg": "param",
"argument": "param",
"return": "returns",
"exception": "throws"
},
"requireReturn": false
}
],
"wrap-iife": [2, "outside"]
},
"settings": {
"ecmascript": 6,
"jsx": true
}
}