Skip to content

Commit

Permalink
Upgrade react native to 0.50.4, react to 16.0.0, eslint to 4.11.8, fl…
Browse files Browse the repository at this point in the history
…ow to 0.56.0.
  • Loading branch information
vinceyuan committed Feb 21, 2018
1 parent c90e6e7 commit 8650ba4
Show file tree
Hide file tree
Showing 4 changed files with 6,279 additions and 35 deletions.
20 changes: 19 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,32 @@
"navigator": false,
"setTimeout": true,
"setInterval": true,
"React$Component": false,
"React$Element": false,
"require": true,
"Promise": true,
"alert": true,
},
"rules": {
"comma-dangle": [1, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
}],
"curly": [1, "all"],
"indent": [1, 2],
"jsx-quotes": [1, "prefer-single"],
"max-len": [1, 120],
"no-console": 1,
"no-unused-vars": 1,
"quotes": [1, "single", { "avoidEscape": true }],
"react-native/no-unused-styles": 1,
"react-native/split-platform-components": 1,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 1,
"react-native/no-color-literals": 0,
"semi": [1, "always"],
"react/prop-types": 0,
}
}
18 changes: 10 additions & 8 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,37 @@
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js

; Ignore polyfills
.*/Libraries/polyfills/.*

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow
flow/
node_modules/react-native/flow/

[options]
emoji=true

module.system=haste

experimental.strict_type_args=true

munge_underscores=true

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'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-8]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-6]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

unsafe.enable_getters_and_setters=true

[version]
^0.38.0
^0.56.0
Loading

0 comments on commit 8650ba4

Please sign in to comment.