/
eslintrc.json
85 lines (85 loc) · 2.71 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
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
{
"plugins": ["@acmecryptocorp/eslint-plugin", "flowtype"],
"rules": {
"@acmecryptocorp/require-exact-object-type": "off",
"@acmecryptocorp/require-explicit-object-exactness": "error",
"@acmecryptocorp/require-variable-type": "off",
"@acmecryptocorp/type-export-filename": [
"error",
[
"src/types/**/*.types.js",
"src/types/**/*.flow.js",
"src/types/**/index.js",
"src/index.js"
]
],
"flowtype/array-style-complex-type": ["error", "verbose"],
"flowtype/array-style-simple-type": ["error", "verbose"],
"flowtype/arrow-parens": "off",
"flowtype/boolean-style": ["error", "boolean"],
"flowtype/define-flow-type": "error",
"flowtype/delimiter-dangle": "off",
"flowtype/generic-spacing": "off",
"flowtype/newline-after-flow-annotation": ["error", "always"],
"flowtype/no-dupe-keys": "error",
"flowtype/no-existential-type": "warn",
"flowtype/no-flow-fix-me-comments": ["warn", "\\s+\\w+"],
"flowtype/no-mixed": "off",
"flowtype/no-mutable-array": "warn",
"flowtype/no-primitive-constructor-types": "error",
"flowtype/no-types-missing-file-annotation": "error",
"no-unused-expressions": "off",
"flowtype/no-unused-expressions": "error",
"flowtype/no-weak-types": "warn",
"flowtype/object-type-delimiter": "off",
"flowtype/require-compound-type-alias": "off",
"flowtype/require-exact-type": "off",
"flowtype/require-indexer-name": "off",
"flowtype/require-inexact-type": "off",
"flowtype/require-parameter-type": "error",
"flowtype/require-readonly-react-props": "off",
"flowtype/require-return-type": [
"error",
"always",
{
"excludeArrowFunctions": "expressionsOnly"
}
],
"flowtype/require-types-at-top": "off",
"flowtype/require-valid-file-annotation": [
"error",
"never",
{
"annotationStyle": "line"
}
],
"flowtype/require-variable-type": "off",
"flowtype/semi": "off",
"flowtype/sort-keys": "off",
"flowtype/space-after-type-colon": "off",
"flowtype/space-before-generic-bracket": "off",
"flowtype/space-before-type-colon": "off",
"flowtype/spread-exact-type": "off",
"flowtype/type-id-match": [
"error",
"^([A-Z][a-z0-9]*)+Type|(\\$[A-Z][A-Za-z0-9]*)$"
],
"flowtype/type-import-style": ["error", "declaration"],
"flowtype/union-intersection-spacing": "off",
"flowtype/use-flow-type": "error"
},
"overrides": [
{
"files": ["*.flow.js", "*.types.js"],
"rules": {
"no-use-before-define": "off"
}
}
],
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": true
}
},
"parser": "babel-eslint"
}