Skip to content

Commit 273f0da

Browse files
authored
chore: update eslint config and typescript (#29)
1 parent d0fcffd commit 273f0da

File tree

3 files changed

+219
-125
lines changed

3 files changed

+219
-125
lines changed

example/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ProgressViewExample extends React.Component<Props, State> {
4545
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
4646
* found when Flow v0.85 was deployed. To see the error, delete this comment
4747
* and run Flow. */
48-
getProgress = offset => {
48+
getProgress = (offset) => {
4949
const progress = this.state.progress + offset;
5050
return Math.sin(progress % Math.PI) % 1;
5151
};

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,22 @@
4141
"devDependencies": {
4242
"@babel/core": "^7.4.3",
4343
"@babel/runtime": "^7.4.3",
44-
"@react-native-community/eslint-config": "^0.0.7",
45-
"@react-native-community/eslint-plugin": "^1.0.0",
44+
"@react-native-community/eslint-config": "^1.0.0",
4645
"@types/react": "^16.9.19",
4746
"@types/react-native": "^0.61.2",
4847
"babel-jest": "24.7.1",
4948
"babel-plugin-module-resolver": "^3.2.0",
5049
"eslint": "^6.8.0",
51-
"eslint-plugin-prettier": "^3.1.2",
5250
"flow-bin": "0.105.2",
5351
"jest": "^25.1.0",
5452
"metro-react-native-babel-preset": "0.53.1",
55-
"prettier": "^1.19.1",
5653
"react": "16.8.3",
5754
"react-native": "^0.61.5",
5855
"react-test-renderer": "16.8.3",
59-
"typescript": "^3.7.5"
56+
"typescript": "^3.8.3"
6057
},
6158
"peerDependencies": {
62-
"react": "^16.8.3",
59+
"react": ">16.8.3",
6360
"react-native": ">=0.59.5"
6461
},
6562
"publishConfig": {

0 commit comments

Comments
 (0)