-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc
More file actions
64 lines (64 loc) · 1.68 KB
/
.eslintrc
File metadata and controls
64 lines (64 loc) · 1.68 KB
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
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"plugins": ["jsx-a11y", "import", "flowtype", "react", "fp"],
"rules": {
"complexity": ["error", 10],
"max-depth": ["error", 4],
"max-lines": ["error", 300],
"max-statements": ["error", 20],
"consistent-return": 0,
"default-case": 0,
"guard-for-in": 0,
"one-var": 0,
"no-await-in-loop": 0,
"no-continue": 0,
"no-loop-func": 0,
"no-param-reassign": 0,
"no-undef": 0,
"no-restricted-syntax": 0,
"no-return-assign": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"no-cond-assign": 0,
"no-nested-ternary": 0,
"no-underscore-dangle": 0,
"no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "ignoreRestSiblings": true }
],
"no-use-before-define": 0,
"no-plusplus": 0,
"react/jsx-closing-tag-location": 0,
"react/no-unused-prop-types": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/jsx-indent": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/jsx-filename-extension": 0,
"react/no-array-index-key": 0,
"react/no-unused-state": 0,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/require-default-props": 0,
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/prefer-default-export": 0,
"prefer-destructuring": [
"error",
{
"array": false,
"object": true
},
{
"enforceForRenamedProperties": false
}
]
},
"settings": {
"import/resolver": {
"babel-plugin-root-import": {}
}
}
}