-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
99 lines (99 loc) · 2.97 KB
/
index.js
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
module.exports = {
extends: "airbnb-base",
env: {
es6: true,
node: true
},
parser: "@babel/eslint-parser",
plugins: ["filenames", "immutable", "prettier"],
rules: {
"array-bracket-spacing": "error",
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "always-multiline"],
"consistent-return": ["error", { treatUndefinedAsUnspecified: true }],
"filenames/match-exported": "error",
"import/default": "error",
"import/export": "error",
"import/named": "error",
"import/namespace": "error",
"import/no-named-as-default": "error",
"import/no-unresolved": [
"error",
{
amd: true,
commonjs: true
}
],
indent: ["error", 2, { SwitchCase: 1 }],
"key-spacing": ["error", { afterColon: true }],
"line-comment-position": ["error", { position: "above" }],
"lines-between-class-members": [
"error",
"always",
{ exceptAfterSingleLine: true }
],
"max-len": ["error", { code: 120, comments: 120, ignoreUrls: true }],
"max-lines": [
"error",
{ max: 500, skipBlankLines: true, skipComments: true }
],
"newline-after-var": ["error", "always"],
"newline-before-return": "error",
"no-await-in-loop": "error",
"no-console": "error",
"no-debugger": "error",
"no-delete-var": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-empty": "error",
"no-empty-function": "error",
"no-empty-pattern": "error",
"no-eval": "error",
"no-extra-semi": "error",
"no-implicit-globals": "error",
"no-invalid-regexp": "error",
"no-invalid-this": "error",
"no-irregular-whitespace": [
"error",
{ skipTemplates: true, skipRegExps: true, skipComments: true }
],
"no-label-var": "error",
"no-lonely-if": "error",
"no-mixed-requires": "error",
"no-multiple-empty-lines": ["error", { max: 1, maxEOF: 0 }],
"no-multi-str": "error",
"no-negated-condition": "error",
"no-path-concat": "error",
"no-process-exit": "error",
"no-restricted-globals": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-unexpected-multiline": "error",
"no-unneeded-ternary": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-return": "error",
"no-var": "error",
"object-curly-newline": [
"error",
{
ObjectExpression: { multiline: true, minProperties: 2 },
ObjectPattern: { multiline: true, minProperties: 2 },
ImportDeclaration: "never"
}
],
"object-curly-spacing": "error",
"object-property-newline": [
"error",
{ allowAllPropertiesOnSameLine: true }
],
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-spread": "error",
quotes: ["error", "single"],
"sort-keys": ["error", "asc", { caseSensitive: true }]
}
};