-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
54 lines (54 loc) · 1.12 KB
/
.eslintrc.json
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
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:lodash/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"installedESLint": true,
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"classes": true,
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"plugins": [
"promise",
"lodash",
"import"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"error",
"always"
],
"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/no-nesting": "off",
"promise/no-promise-in-callback": "warn",
"promise/no-callback-in-promise": "warn",
"promise/avoid-new": "warn",
"import/no-named-as-default": "off",
"lodash/import-scope": "off",
"lodash/preferred-alias": "off",
"lodash/prop-shorthand": "off"
}
}