-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
76 lines (76 loc) · 1.77 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
{
"plugins": ["googleappsscript"],
"env": {
"googleappsscript/googleappsscript": true,
"node": true,
"mocha": true
},
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": 2017
},
"rules": {
"import/no-unresolved": 0,
"import/no-unassigned-import": 0,
"semi": ["error", "always"],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}
],
"arrow-parens": 0,
"generator-star-spacing": 0,
"quotes": ["error", "double"],
"curly": "error",
"default-case": "error",
"no-empty-function": "error",
"no-loop-func": "error",
"no-param-reassign": "error",
"no-redeclare": "error",
"no-return-assign": ["error", "always"],
"vars-on-top": "error",
"yoda": "error",
"init-declarations": ["error", "always"],
"global-require": "error",
"no-mixed-requires": "error",
"camelcase": "error",
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"eol-last": "error",
"keyword-spacing": "error",
"no-lonely-if": "error",
"func-call-spacing": ["error", "never"],
"no-trailing-spaces": "off",
"comma-dangle": ["error", "never"],
"object-property-newline": "error",
"one-var": ["error", "never"],
"space-in-parens": [
"error",
"always",
{
"exceptions": ["empty", "{}"]
}
],
"no-duplicate-imports": "error",
"no-var": "error",
"prefer-const": "error",
"key-spacing": [
"error",
{
"align": "colon"
}
],
"no-multi-spaces": "off",
"no-unused-vars": "warn",
"no-unexpected-multiline": "error",
"no-unreachable": "error"
}
}