Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Commit 3ebd97c

Browse files
Upgrade flow to 0.35 to match React Native 0.39
1 parent 9d9e770 commit 3ebd97c

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

‎.flowconfig‎

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,29 @@
11
[ignore]
2-
3-
# We fork some components by platform.
2+
; We fork some components by platform
43
.*/*[.]android.js
54

6-
# Ignore templates with `@flow` in header
7-
.*/local-cli/generator.*
8-
9-
# Ignore malformed json
10-
.*/node_modules/y18n/test/.*\.json
11-
12-
# Ignore the website subdir
13-
<PROJECT_ROOT>/website/.*
14-
15-
# Ignore BUCK generated dirs
5+
; Ignore "BUCK" generated dirs
166
<PROJECT_ROOT>/\.buckd/
177

18-
# Ignore unexpected extra @providesModule
19-
.*/node_modules/commoner/test/source/widget/share.js
8+
; Ignore unexpected extra "@providesModule"
9+
.*/node_modules/.*/node_modules/fbjs/.*
2010

21-
# Ignore duplicate module providers
22-
# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root
11+
; Ignore duplicate module providers
12+
; For RN Apps installed via npm, "Libraries" folder is inside
13+
; "node_modules/react-native" but in the source repo it is in the root
2314
.*/Libraries/react-native/React.js
2415
.*/Libraries/react-native/ReactNative.js
25-
.*/node_modules/jest-runtime/build/__tests__/.*
2616

2717
[include]
28-
index.js
29-
lib/
3018

3119
[libs]
3220
node_modules/react-native/Libraries/react-native/react-native-interface.js
3321
node_modules/react-native/flow
22+
flow/
3423

3524
[options]
3625
module.system=haste
3726

38-
esproposal.class_static_fields=enable
39-
esproposal.class_instance_fields=enable
40-
4127
experimental.strict_type_args=true
4228

4329
munge_underscores=true
@@ -49,11 +35,11 @@ suppress_type=$FlowIssue
4935
suppress_type=$FlowFixMe
5036
suppress_type=$FixMe
5137

52-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-2]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
53-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-2]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
38+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-5]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
39+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-5]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
5440
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
5541

5642
unsafe.enable_getters_and_setters=true
5743

5844
[version]
59-
^0.32.0
45+
^0.35.0

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"eslint-plugin-flowtype": "^2.19.0",
4040
"eslint-plugin-import": "^1.16.0",
4141
"eslint-plugin-react": "^6.0.0",
42-
"flow-bin": "^0.32.0",
42+
"flow-bin": "^0.35.0",
4343
"react": "15.4.2",
4444
"react-native": "0.39.0"
4545
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /