Skip to content

Commit f715d41

Browse files
committed
Updated with @Salakar v3
2 parents 29140b6 + 9b6a606 commit f715d41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3700
-2383
lines changed

Diff for: .babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"presets": ["react-native"]
3-
}
3+
}

Diff for: .editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

Diff for: .eslintrc

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": "airbnb",
3+
"parser": "babel-eslint",
4+
"ecmaFeatures": {
5+
"jsx": true
6+
},
7+
"plugins": [
8+
"flowtype"
9+
],
10+
"env": {
11+
"es6": true,
12+
"jasmine": true
13+
},
14+
"parserOptions": {
15+
"ecmaFeatures": {
16+
"experimentalObjectRestSpread": true
17+
}
18+
},
19+
"rules": {
20+
"class-methods-use-this": 0,
21+
"no-underscore-dangle": 0,
22+
"no-use-before-define": 0,
23+
"arrow-body-style": 0,
24+
"import/prefer-default-export": 0,
25+
"radix": 0,
26+
"new-cap": 0,
27+
"max-len": 0,
28+
"no-continue": 0,
29+
"no-console": 0,
30+
"global-require": 0,
31+
"import/extensions": 0,
32+
"import/no-unresolved": 0,
33+
"import/no-extraneous-dependencies": 0,
34+
"react/jsx-filename-extension": 0
35+
},
36+
"globals": {
37+
"__DEV__": true,
38+
"window": true
39+
}
40+
}

Diff for: .flowconfig

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
[ignore]
2+
3+
4+
# Some modules have their own node_modules with overlap
5+
.*/node_modules/node-haste/.*
6+
7+
8+
# React Native problems
9+
.*/node_modules/react-native/Libraries/Animated/src/AnimatedInterpolation.js
10+
.*/node_modules/react-native/Libraries/Animated/src/Interpolation.js
11+
.*/node_modules/react-native/Libraries/BugReporting/dumpReactTree.js
12+
.*/node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js
13+
.*/node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/NavigationPagerStyleInterpolater.js
14+
.*/node_modules/react-native/Libraries/Experimental/WindowedListView.js
15+
.*/node_modules/react-native/Libraries/Image/Image.io.js
16+
.*/node_modules/react-native/Libraries/NavigationExperimental/NavigationExperimental.js
17+
.*/node_modules/react-native/Libraries/NavigationExperimental/NavigationHeaderStyleInterpolator.js
18+
.*/node_modules/react-native/Libraries/Network/FormData.js
19+
.*/node_modules/react-native/Libraries/ReactIOS/YellowBox.js
20+
21+
22+
23+
# Ignore react and fbjs where there are overlaps, but don't ignore
24+
# anything that react-native relies on
25+
.*/node_modules/fbjs/lib/Map.js
26+
.*/node_modules/fbjs/lib/ErrorUtils.js
27+
28+
# Flow has a built-in definition for the 'react' module which we prefer to use
29+
# over the currently-untyped source
30+
.*/node_modules/react/react.js
31+
.*/node_modules/react/lib/React.js
32+
.*/node_modules/react/lib/ReactDOM.js
33+
34+
.*/__mocks__/.*
35+
.*/__tests__/.*
36+
37+
.*/commoner/test/source/widget/share.js
38+
39+
# Ignore commoner tests
40+
.*/node_modules/commoner/test/.*
41+
42+
# See https://github.com/facebook/flow/issues/442
43+
.*/react-tools/node_modules/commoner/lib/reader.js
44+
45+
# Ignore jest
46+
.*/node_modules/jest-cli/.*
47+
48+
# Ignore Website
49+
.*/website/.*
50+
51+
# Ignore generators
52+
.*/local-cli/generator.*
53+
54+
# Ignore BUCK generated folders
55+
.*\.buckd/
56+
57+
.*/node_modules/is-my-json-valid/test/.*\.json
58+
.*/node_modules/iconv-lite/encodings/tables/.*\.json
59+
.*/node_modules/y18n/test/.*\.json
60+
.*/node_modules/spdx-license-ids/spdx-license-ids.json
61+
.*/node_modules/spdx-exceptions/index.json
62+
.*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json
63+
.*/node_modules/resolve/lib/core.json
64+
.*/node_modules/jsonparse/samplejson/.*\.json
65+
.*/node_modules/json5/test/.*\.json
66+
.*/node_modules/ua-parser-js/test/.*\.json
67+
.*/node_modules/builtin-modules/builtin-modules.json
68+
.*/node_modules/binary-extensions/binary-extensions.json
69+
.*/node_modules/url-regex/tlds.json
70+
.*/node_modules/joi/.*\.json
71+
.*/node_modules/isemail/.*\.json
72+
.*/node_modules/tr46/.*\.json
73+
.*/node_modules/protobufjs/src/bower.json
74+
.*/node_modules/grpc/node_modules/protobufjs/src/bower.json
75+
76+
[include]
77+
node_modules/fbjs/lib
78+
79+
[libs]
80+
lib/flow.js
81+
node_modules/react-native/Libraries/react-native/react-native-interface.js
82+
node_modules/react-native/flow
83+
node_modules/fbjs/flow/lib
84+
85+
[options]
86+
module.system=haste
87+
88+
experimental.strict_type_args=true
89+
unsafe.enable_getters_and_setters=true
90+
91+
esproposal.class_static_fields=enable
92+
esproposal.class_instance_fields=enable
93+
94+
munge_underscores=true
95+
96+
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
97+
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
98+
99+
suppress_type=$FlowIssue
100+
suppress_type=$FlowFixMe
101+
suppress_type=$FixMe
102+
103+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-4]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
104+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-4]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
105+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ android/.gradle/
2929
android/.signing/
3030

3131
# User-specific configurations
32+
android/.idea/gradle.xml
3233
android/.idea/libraries/
3334
android/.idea/workspace.xml
3435
android/.idea/tasks.xml
@@ -51,8 +52,10 @@ android/*.iml
5152
ehthumbs.db
5253
Thumbs.dbandroid/gradle
5354
android/gradlew
55+
android/build
5456
android/gradlew.bat
5557
android/gradle/
5658
.idea
5759
.idea
5860
coverage
61+
yarn.lock

0 commit comments

Comments
 (0)