-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
60 lines (60 loc) · 1.49 KB
/
.eslintrc.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
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: "module"
},
plugins: ["eslint-plugin-import", "prettier"],
extends: ["prettier"],
env: {
es6: true,
node: true,
jest: true
},
rules: {
"prettier/prettier": 1,
quotes: [2, "double", { avoidEscape: true }],
"brace-style": [2, "1tbs", { allowSingleLine: false }],
"func-style": [1, "declaration", { allowArrowFunctions: true }],
"sort-imports": [
1,
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ["none", "all", "multiple", "single"]
}
],
"import/order": [
1,
{
groups: [["builtin"], ["external"], ["internal", "sibling", "parent", "index"]],
"newlines-between": "always",
alphabetize: {
order: "asc" /* sort in ascending order. Options: ['ignore', 'asc', 'desc'] */,
caseInsensitive: true /* ignore case. Options: [true, false] */
}
}
],
"object-curly-newline": [
1,
{
ObjectExpression: {
consistent: true,
minProperties: 3
},
ObjectPattern: {
consistent: true
},
ExportDeclaration: {
consistent: true
}
}
],
"no-param-reassign": [2],
semi: [1, "always"],
"padded-blocks": [1, "never"],
"comma-dangle": [1, "never"],
"no-multiple-empty-lines": [1, { max: 1, maxEOF: 1 }]
}
};