Skip to content

Commit 8b0eb8d

Browse files
committed
Initial implementation for React Native
1 parent 0b48469 commit 8b0eb8d

21 files changed

+5647
-743
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[{package.json,*.yml}]
13+
indent_size = 2
14+
15+
[{*.md,*.snap}]
16+
trim_trailing_whitespace = false

.eslintrc.json

+23-42
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,27 @@
11
{
2-
"parserOptions": {
3-
"sourceType": "module"
4-
},
5-
"globals": {
6-
"WHATWGFetch": true,
7-
"ArrayBuffer": true,
8-
"DataView": true,
9-
"Promise": true,
10-
"Symbol": true,
11-
"Uint8Array": true
12-
},
13-
"extends": [
14-
"plugin:github/browser"
15-
],
16-
"rules": {
17-
"object-shorthand": "off"
18-
},
19-
"overrides": [
20-
{
21-
"files": ["test/*.js"],
22-
"env": {
23-
"browser": true,
24-
"mocha": true
25-
},
26-
"globals": {
27-
"assert": true,
28-
"chai": true,
29-
"FileReaderSync": true,
30-
"Mocha": true
31-
}
2+
"root": true,
3+
"parser": "@babel/eslint-parser",
4+
"extends": [
5+
"@react-native-community",
6+
"prettier",
7+
"prettier/flowtype",
8+
"plugin:flowtype/recommended"
9+
],
10+
"plugins": [
11+
"@babel/eslint-plugin",
12+
"@babel/plugin-proposal-class-properties",
13+
"flowtype"
14+
],
15+
"settings": {
16+
"flowtype": {
17+
"onlyFilesWithFlowAnnotation": true
18+
}
3219
},
33-
{
34-
"files": ["test/{karma,server}*.js"],
35-
"env": {
36-
"node": true
37-
}
38-
},
39-
{
40-
"files": ["test/worker.js"],
41-
"env": {
42-
"worker": true
43-
}
20+
"globals": {
21+
"ReadableStream": true,
22+
"Blob": true,
23+
"FileReader": true,
24+
"TextDecoder": true,
25+
"TextEncoder": true
4426
}
45-
]
4627
}

.flowconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[include]
2+
.*/src/.*
3+
4+
[ignore]
5+
.*/test/.*
6+
.*/node_modules/.*
7+
8+
[libs]
9+
10+
[lints]
11+
12+
[options]
13+
14+
[strict]
15+
nonstrict-import
16+
unclear-type
17+
unsafe-getters-setters
18+
untyped-import
19+
untyped-type-import
20+
sketchy-null

.gitignore

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
.env
2-
package-lock.json
3-
dist/
4-
bower_components/
51
node_modules/
6-
sauce_connect/
7-
sauce_connect.log
2+

.travis.yml

-11
This file was deleted.

LICENSE

+18-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
Copyright (c) 2014-2016 GitHub, Inc.
1+
The MIT License (MIT)
22

3-
Permission is hereby granted, free of charge, to any person obtaining
4-
a copy of this software and associated documentation files (the
5-
"Software"), to deal in the Software without restriction, including
6-
without limitation the rights to use, copy, modify, merge, publish,
7-
distribute, sublicense, and/or sell copies of the Software, and to
8-
permit persons to whom the Software is furnished to do so, subject to
9-
the following conditions:
3+
Copyright (c) React Native Community
104

11-
The above copyright notice and this permission notice shall be
12-
included in all copies or substantial portions of the Software.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
1311

14-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Makefile

-18
This file was deleted.

babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@babel/preset-flow"],
3+
};

bower.json

-13
This file was deleted.

0 commit comments

Comments
 (0)