-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
77 lines (77 loc) · 2.05 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module.exports = {
env: {
node: true,
es6: true
},
parser: "babel-eslint",
extends: ["plugin:prettier/recommended"],
plugins: ["import", "promise", "compat", "prettier"],
rules: {
"arrow-body-style": "off",
"arrow-parens": "off",
"class-methods-use-this": "off",
"comma-dangle": "off",
"compat/compat": 0,
"consistent-return": "off",
"generator-star-spacing": "off",
"import/export": "off",
"import/named": "off",
"import/no-cycle": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false,
packageDir: "./"
}
],
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"import/no-unresolved": "error",
"import/order": [
"error",
{ groups: [["builtin", "external", "internal"]] }
],
"import/prefer-default-export": "off",
"no-async-promise-executor": "off",
"no-console": [
"error",
{
allow: ["info", "error", "warn"]
}
],
"no-multi-assign": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"no-unused-vars": ["error"],
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "*", next: "return" },
{ blankLine: "always", prev: ["block-like"], next: "*" },
{ blankLine: "always", prev: ["const", "let", "var"], next: "*" },
{
blankLine: "any",
prev: ["const", "let", "var"],
next: ["const", "let", "var"]
}
],
"no-return-await": 0,
"no-nested-ternary": 0,
"no-undef": "error",
"prettier/prettier": ["error", { singleQuote: true }],
"promise/always-return": 0,
"promise/catch-or-return": 0,
"promise/no-native": "off",
"promise/param-names": "error"
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
experimentalObjectRestSpread: true
}
}
};