forked from imtoo/meetup-iOS-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
68 lines (68 loc) · 1.79 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
58
59
60
61
62
63
64
65
66
67
68
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:jest/recommended",
"plugin:security/recommended"
],
"env": {
"es6": true,
"node": true,
"browser": true,
"jest/globals": true,
"detox/detox": true
},
"plugins": [
"flowtype",
"jest",
"detox",
"security"
],
"rules": {
"indent": [2, 4],
"complexity": [1, 3],
"max-len": [2, 120],
"react/jsx-filename-extension": [0],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"jsx-a11y/anchor-is-valid": ["error", {
"components": ["Link"],
"specialLink": ["to"]
}],
"import/no-extraneous-dependencies": [2, {
"devDependencies": [
"jest.transform.js",
"__jest__/**",
"**/transform.js",
"**/dev.js",
"**/*.test.js",
"**/stories{.web,.ios,.android,.native,}.js",
"**/scripts/*.js"
]
}],
"flowtype/define-flow-type": 1,
"flowtype/delimiter-dangle": [2, "always-multiline"],
"flowtype/boolean-style": [2, "boolean"],
"flowtype/generic-spacing": [2, "never"],
"flowtype/no-dupe-keys": 2,
"flowtype/no-primitive-constructor-types": 2,
"flowtype/no-types-missing-file-annotation": 2,
"flowtype/no-weak-types": 1,
"flowtype/object-type-delimiter": 2,
"flowtype/require-parameter-type": [2, {
"excludeArrowFunctions": "expressionsOnly"
}],
"flowtype/semi": 2,
"flowtype/space-after-type-colon": 2,
"flowtype/space-before-generic-bracket": 2,
"flowtype/space-before-type-colon": 2,
"flowtype/type-id-match": 2,
"flowtype/union-intersection-spacing": 2,
"flowtype/use-flow-type": 1,
"flowtype/require-valid-file-annotation": [2, "always"],
"no-use-before-define": 0
},
"globals": {
"fetch": false
}
}