-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.json
57 lines (57 loc) · 1.54 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
{
"extends": [
"airbnb",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"env": {
"browser": true,
"jest": true
},
"plugins": ["react", "flowtype"],
"parser": "babel-eslint",
"rules": {
"no-confusing-arrow": "off",
"no-else-return": "off",
"no-underscore-dangle": "off",
"no-duplicate-imports": "off",
"max-len": ["error", 120],
"no-unused-vars": ["error", {"args": "none"}],
"react/jsx-boolean-value": ["error", "always"],
"flowtype/define-flow-type": 1,
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}],
"import/prefer-default-export": "off",
"import/no-dynamic-require": "off",
"import/extensions": "off",
"react/self-closing-comp": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"react/jsx-filename-extension": "off",
"react/require-default-props": "off",
"jsx-a11y/no-static-element-interactions": 0,
"react/sort-comp": [1, {
"order": [
"type-annotations",
"lifecycle",
"static-methods",
"everything-else",
"render"
]
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"global-require": "off"
},
"settings": {
"import/resolver": {
"webpack": {
"config": "config/webpack.dev.js"
}
}
}
}