forked from nielsgl/sequelize-paper-trail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
57 lines (57 loc) · 1.15 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
{
"root": true,
// "extends": "airbnb/base",
"plugins": [
"flow-vars",
"flowtype"
],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"globals": {
"expect": false
},
"rules": {
"comma-dangle": "warn",
"eol-last": "warn",
"indent": "warn",
"no-var": "warn",
"dot-notation": "warn",
"no-unused-vars": "warn",
"object-shorthand": "warn",
"object-curly-spacing": "warn",
"no-trailing-spaces": "warn",
"vars-on-top": "warn",
"space-before-function-paren": "warn",
"quotes": [1, "single"],
"curly": 2,
"semi": [1, "always"],
"flow-vars/define-flow-type": 2,
"flow-vars/use-flow-type": 2,
"flowtype/require-parameter-type": 2,
"flowtype/require-return-type": [
"warn",
"always",
{ "annotateUndefined": "always" }
],
"flowtype/space-after-type-colon": [
"warn",
"always"
],
"flowtype/space-before-type-colon": [
"warn",
"never"
],
"flowtype/type-id-match": [
2,
"^([A-Z][a-z0-9]+)+Type$"
]
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
}
}