-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc
62 lines (62 loc) · 1.53 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
{
"parser": "@babel/eslint-parser",
"root": true,
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"prettier"
],
"plugins": ["flowtype", "import", "react"],
"env": {
"browser": true,
"jest": true
},
"rules": {
"arrow-parens": [
"warn",
"as-needed",
{
"requireForBlockBody": true
}
],
"comma-dangle": ["error", "never"],
"max-len": [
"error",
{ "code": 80, "ignoreStrings": true, "ignoreUrls": true }
],
"no-dupe-class-members": 0,
"no-return-assign": 0,
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"react/default-props-match-prop-types": [
"error",
{
"allowRequiredDefaults": true
}
],
"react/destructuring-assignment": 0,
"react/no-unused-class-component-methods": 0,
"react/prop-types": [1, { "skipUndeclared": true }],
"react/sort-comp": [
1,
{
"order": [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}
],
"react/state-in-constructor": ["error", "never"],
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"react/require-default-props": 0,
"react/static-property-placement": ["error", "static public field"],
"react/jsx-fragments": ["error", "element"],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": true, "peerDependencies": true }
],
"quotes": ["error", "single"]
}
}