forked from wdr-data/informant-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
139 lines (139 loc) · 3.12 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
139
{
"plugins": ["node", "jest", "import"],
"extends": ["eslint:recommended", "plugin:node/recommended", "plugin:jest/recommended"],
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"no-console": "off",
"no-extra-parens": "error",
"valid-jsdoc": [
"error",
{
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false,
"prefer": {
"returns": "return"
}
}
],
"curly": "error",
"guard-for-in": "error",
"no-caller": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-invalid-this": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-new-wrappers": "error",
"no-throw-literal": "error",
"no-with": "error",
"no-unused-vars": [
"error",
{
"args": "none"
}
],
"array-bracket-newline": [
"error",
{
"multiline": true
}
],
"array-bracket-spacing": [
"error",
"always"
],
"block-spacing": [
"error",
"always"
],
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"func-call-spacing": "error",
"indent": ["error", 4],
"key-spacing": "error",
"keyword-spacing": "error",
"max-len": [
"error",
{
"code": 100,
"ignoreUrls": true,
"ignoreRegExpLiterals": true
}
],
"new-cap": "error",
"no-array-constructor": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"no-new-object": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"padded-blocks": [
"error",
"never"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
{
"asyncArrow": "always",
"anonymous": "never",
"named": "never"
}
],
"spaced-comment": "error",
"switch-colon-spacing": "error",
"arrow-parens": [
"error",
"always"
],
"constructor-super": "error",
"generator-star-spacing": "error",
"no-this-before-super": "error",
"no-var": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"rest-spread-spacing": "error",
"yield-star-spacing": "error",
"eqeqeq": "error",
"node/exports-style": ["error", "module.exports"],
"node/no-unpublished-require": [
"error",
{
"allowModules": ["js-yaml", "extend", "object-hash"]
}
],
"node/no-unsupported-features": 0,
"node/shebang": 0,
"import/no-commonjs": 2
}
}