-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.eslintrc
48 lines (48 loc) · 1.26 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
{
"env": {
"node": true,
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"blockBindings": true,
"generators": true,
"arrowFunctions": true,
"destructuring": true,
"defaultParams": true,
"restParams": true,
"spread": true,
"templateStrings": true,
"modules": true,
"arrow-body-style": true,
"jsx": true,
"objectLiteralShorthandMethods": true
}
},
"rules": {
"curly": 2,
"semi": 1,
"eqeqeq": 1,
"no-eval": 2,
"no-unused-vars": 1,
"no-use-before-define": [1, "nofunc"],
"no-undef": 1,
"global-require": 0,
"quotes": [1, "single", "avoid-escape"],
"indent": [2, "tab", {"SwitchCase": 1}],
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"arrow-parens": [1, "as-needed"],
"keyword-spacing": [1, {"before": true, "after": true}],
"no-var": 1
},
"globals": {
"_": true,
"$",
"console": true,
"window": true,
"document",
}
}