-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
89 lines (89 loc) · 2.43 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"airbnb",
"plugin:flowtype/recommended"
],
"plugins": [
"flowtype"
],
"env": {
"browser": true,
"jest": true
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
},
"rules": {
"flowtype/no-types-missing-file-annotation": 0,
"indent": [2, 4],
"no-unused-vars": [
"warn",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"max-len": [
1, 120, 4, {
"ignoreComments": true,
"ignoreUrls": true,
"ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\("
}
],
"complexity": [1, 5],
"import/no-extraneous-dependencies": [
"error", {
"optionalDependencies": false,
"peerDependencies": true
}
],
"no-prototype-builtins": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "always-multiline"
}],
"no-multi-spaces": ["error", {"ignoreEOLComments": true}],
"no-return-assign": ["error", "except-parens"],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/prefer-es6-class": [1, "always"],
"react/jsx-no-bind": [1, {
"ignoreRefs": false,
"allowArrowFunctions": false,
"allowBind": false
}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/no-unused-prop-types": [2, { "skipShapeProps": true }],
"react/forbid-prop-types": [0]
},
"overrides": [
{
"files": [
"**/*.spec.js",
"**/__tests__/**/*.js",
"**/__mocks__/**/*.js"
],
"env": {
"jest": true
},
"rules": {
"arrow-body-style": 0
}
}
]
}