-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
138 lines (132 loc) · 4.03 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
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"forOf": true,
"arrowFunctions": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"restParams": true,
"spread": true,
"superInFunctions": true
}
},
"env": {
"node": true,
"browser": true,
"es6": true,
"commonjs": true
},
"globals": {
"_": false,
"moment": false
},
"extends": ["standard"],
"plugins": [],
"rules": {
"arrow-parens": [1, "as-needed"],
"arrow-spacing": [1, { "before": true, "after": true }],
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 2,
"comma-dangle": 0,
"no-cond-assign": [1, "except-parens"],
"no-constant-condition": 1,
"no-dupe-args": 1,
"no-dupe-keys": 0,
"no-duplicate-case": 1,
"no-empty-character-class": 1,
"no-ex-assign": 1,
"no-extra-boolean-cast": 1,
"no-extra-parens": [1, "all"],
"no-extra-semi": 1,
"no-func-assign": 1,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 1,
"no-sparse-arrays": 1,
"no-unreachable": 2,
"no-unexpected-multiline": 2,
"block-scoped-var": 2,
"consistent-return": 2,
"curly": 1,
"dot-location": [1, "property"],
"eqeqeq": [1, "smart"],
"no-eq-null": 1,
"no-eval": 2,
"no-extra-bind": 1,
"no-fallthrough": 1,
"no-floating-decimal": 1,
"no-implicit-coercion": 1,
"no-implied-eval": 2,
"no-invalid-this": 0,
"no-labels": 2,
"no-lone-blocks": 0,
"no-loop-func": 2,
"no-multi-spaces": 1,
"no-native-reassign": 1,
"no-new-func": 1,
"no-new": 1,
"no-octal": 1,
"no-proto": 1,
"no-redeclare": 1,
"no-return-assign": 1,
"no-script-url": 1,
"no-self-compare": 1,
"no-sequences": 1,
"no-unused-expressions": 1,
"no-useless-call": 1,
"no-void": 1,
"no-with": 1,
"wrap-iife": 0,
"yoda": [1, "never", { "exceptRange": false, "onlyEquality": false }],
"no-shadow-restricted-names": 1,
"no-undef-init": 2,
"no-undef": 2,
"no-unused-vars": 1,
"no-use-before-define": 1,
"array-bracket-spacing": [1, "never", { "singleValue": false, "objectsInArrays": true, "arraysInArrays": true }],
"block-spacing": [1, "always"],
"brace-style": [1, "stroustrup", { "allowSingleLine": true }],
"camelcase": [0, { "properties": "always" }],
"comma-spacing": [1, { "before": false, "after": true }],
"comma-style": [1, "last"],
"computed-property-spacing": [1, "never"],
"consistent-this": [2, "that"],
"eol-last": 2,
"func-style": [2, "declaration", { "allowArrowFunctions": true }],
"indent": [1, 2, { "SwitchCase": 1 }],
"key-spacing": [1, { "afterColon": true, "beforeColon": false }],
"lines-around-comment": [1, { "beforeBlockComment": true, "beforeLineComment": false, "allowBlockStart": true, "allowBlockEnd": true }],
"new-parens": 2,
"no-lonely-if": 1,
"no-mixed-spaces-and-tabs": 1,
"no-multiple-empty-lines": [1, { "max": 2 }],
"no-spaced-func": 0,
"no-trailing-spaces": 1,
"object-curly-spacing": [1, "always", { "objectsInObjects": true, "arraysInObjects": true }],
"one-var": [1, "never"],
"operator-assignment": [1, "always"],
"operator-linebreak": [1, "after"],
"quote-props": [2, "as-needed"],
"quotes": [1, "single", "avoid-escape"],
"semi-spacing": [1, { "before": false, "after": true }],
"semi": [1, "never"],
"keyword-spacing": 2,
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, "always"],
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"space-unary-ops": [1, { "words": true, "nonwords": false }],
"spaced-comment": [1, "always"]
}
}