-
Notifications
You must be signed in to change notification settings - Fork 69
/
.eslintrc
48 lines (48 loc) · 1.22 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
{
"root": true,
"parser": "babel-eslint",
"plugins": ["prettier", "flowtype", "jest"],
"env": {
"es6": true,
"node": true,
"jest/globals": true
},
"extends": ["airbnb", "prettier", "plugin:jest/recommended"],
"rules": {
"prettier/prettier": "error",
"no-console": "off",
"indent": ["error", "tab"],
"operator-linebreak": "off",
"arrow-parens": ["warn", "as-needed"],
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"react/no-this-in-sfc": "off",
"no-shadow": "warn",
"no-tabs": "off",
"import/no-extraneous-dependencies": "off",
"eol-last": "warn",
"no-var": "warn",
"dot-notation": "warn",
"no-unused-vars": "warn",
"object-shorthand": "warn",
"no-trailing-spaces": "warn",
"vars-on-top": "warn",
"space-before-function-paren": "warn",
"quotes": [1, "single"],
"semi": [1, "always"],
"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": true
}
}
}