This repository has been archived by the owner on Aug 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc
69 lines (69 loc) · 1.92 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
{
"extends": [
"./eslint/eslintrc",
"plugin:eslint-comments/recommended"
],
"plugins": [
"import",
"promise",
"eslint-comments",
"disable"
],
"settings": {
"eslint-plugin-disable": {
"paths": {
"react": ["./*.js", "src/*.js"]
}
}
},
"overrides": [
{
"files": ["./*.js", "src/*.js"],
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
},
"react": {
"version": "16.3"
}
}
},
{
"files": ["**/*_test.js"],
"rules": {
"max-lines": "off"
}
}
],
"rules": {
"flowtype/no-types-missing-file-annotation": "error",
"import/no-unresolved": "error",
"import/named": "error",
"import/no-absolute-path": "error",
"import/no-self-import": "error",
"import/no-useless-path-segments": "error",
"import/no-named-as-default": "error",
"import/no-named-as-default-member": "error",
"import/no-deprecated": "error",
"import/first": "error",
"import/no-duplicates": "error",
"import/newline-after-import": "error",
"import/no-unassigned-import": "error",
"import/no-named-default": "error",
"import/extensions": [
"error",
"always",
{
"ignorePackages": true
}
],
"import/no-commonjs": "error",
"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "error",
"eslint-comments/no-unused-disable": "error"
}
}