forked from z-dev/react-native-checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
47 lines (47 loc) · 1.2 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
{
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
indent: ['error', 2, {
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
MemberExpression: 1,
FunctionDeclaration: {
parameters: 1,
body: 1
},
FunctionExpression: {
parameters: 1,
body: 1
}
}],
arrow-body-style: [0],
comma-dangle: [0, "never"],
import/no-unresolved: [0],
import/no-commonjs: [2],
no-console: [0],
semi: [2, "never"],
space-before-function-paren: [2, "never"],
space-return-throw-case: [0],
object-shorthand: [0],
complexity: [0],
strict: [2, "never"],
react/prop-types: [0],
max-len: [2, 180, 4],
react/prefer-stateless-function: [0],
react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }],
arrow-parens: [2, "always"],
import/prefer-default-export: [0],
import/no-named-as-default: [0],
react/no-string-refs: [0],
no-mixed-operators: [0],
no-confusing-arrow: [0],
import/extensions: [0], // This seems broken
react/forbid-prop-types: [2, { "forbid": ["any"] }],
react/require-default-props: [0]
},
"globals": {
"fetch": false,
}
}