-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (63 loc) · 1.55 KB
/
.eslintrc.js
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
module.exports = {
extends: ["plugin:flowtype/recommended", "airbnb"],
plugins: ["flowtype", "react-native"],
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2016,
sourceType: "module",
ecmaFeatures: {
jsx: true
}
},
settings: {
"import/resolver": {
"react-native": {},
"babel-plugin-root-import": {
"rootPathPrefix": "~",
"rootPathSuffix": "src"
}
},
"react": {
"version": "16.3"
}
},
env: {
jest: true
},
rules: {
"no-console": 2,
"no-use-before-define": 0,
"jsx-a11y/accessible-emoji": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"max-len": ["error", { code: 120 }],
"flowtype/delimiter-dangle": [2, "always-multiline"],
"flowtype/semi": [2, "always"],
"flowtype/array-style-simple-type": [2, "shorthand"],
"flowtype/no-primitive-constructor-types": 2,
"flowtype/require-valid-file-annotation": [
2,
"always",
{
"annotationStyle": "line"
}
],
"react/sort-comp": 0,
"react/no-did-mount-set-state": 0,
"react/prop-types": 0,
"react/no-did-update-set-state": 0,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 0,
"react-native/no-color-literals": 0,
},
globals: {
fetch: false,
btoa: false,
Headers: false,
window: false,
navigator: false,
requestAnimationFrame: true,
cancelAnimationFrame: true
}
};