-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.45 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
{
"extends": ["airbnb", "plugin:flowtype/recommended"],
"plugins": ["flowtype", "react", "import", "jsx-a11y", "react-native"],
"rules": {
"camelcase": [2, {"properties": "always"}],
"wrap-iife": [2, "inside"],
"new-cap": [2, { "capIsNewExceptions": [] }],
"no-invalid-this": 2,
"class-methods-use-this": 1,
"react/prop-types": 0,
"global-require": 0,
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"no-plusplus": 0,
"no-return-assign": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": [2, {
"allowShortCircuit": true,
"allowTernary": true
}],
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"react/forbid-prop-types": 1,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": 0,
"react/sort-comp": [1, {
"order": [
"type-annotations",
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}],
"react-native/no-unused-styles": 0,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 0,
"react-native/no-color-literals": 2,
"spaced-comment": ["error", "always"]
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
}