File tree Expand file tree Collapse file tree 6 files changed +500
-376
lines changed Expand file tree Collapse file tree 6 files changed +500
-376
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ module . exports = { extends : "@react-native-community" } ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export default class ProgressBarAndroidExample extends React.Component<{}> {
49
49
< RNTesterPage title = "ProgressBar Examples" >
50
50
< RNTesterBlock title = "Horizontal Indeterminate ProgressBar" >
51
51
{ /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
52
- * found when making Flow check .android.js files. */ }
52
+ * found when making Flow check .android.js files. */ }
53
53
< ProgressBar styleAttr = "Horizontal" />
54
54
</ RNTesterBlock >
55
55
@@ -59,7 +59,7 @@ export default class ProgressBarAndroidExample extends React.Component<{}> {
59
59
60
60
< RNTesterBlock title = "Horizontal Black Indeterminate ProgressBar" >
61
61
{ /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
62
- * found when making Flow check .android.js files. */ }
62
+ * found when making Flow check .android.js files. */ }
63
63
< ProgressBar styleAttr = "Horizontal" color = "black" />
64
64
</ RNTesterBlock >
65
65
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ import React from 'react';
2
2
import { AppRegistry } from 'react-native' ;
3
3
4
4
import { name as appName } from './app.json' ;
5
- import ProgressBarAndroidExample from " ./ProgressBarAndroidExample.android" ;
5
+ import ProgressBarAndroidExample from ' ./ProgressBarAndroidExample.android' ;
6
6
7
7
class ExampleApp extends React . Component < { } > {
8
8
render ( ) {
9
9
return (
10
10
< ProgressBarAndroidExample />
11
- )
11
+ ) ;
12
12
}
13
13
}
14
- AppRegistry . registerComponent ( appName , ( ) => ExampleApp ) ;
14
+ AppRegistry . registerComponent ( appName , ( ) => ExampleApp ) ;
Original file line number Diff line number Diff line change 7
7
"start" : " node node_modules/react-native/local-cli/cli.js start" ,
8
8
"start:android" : " adb shell am start -n com.androidprogressbar/.MainActivity" ,
9
9
"build:android" : " cd example/android && ./gradlew installDebug && cd ../.. && npm run start:android" ,
10
- "test" : " jest"
10
+ "test" : " jest" ,
11
+ "validate:eslint" : " eslint 'js/**/*.js' && eslint 'example/**/*.js'"
11
12
},
12
13
"keywords" : [
13
14
" react-native" ,
28
29
"devDependencies" : {
29
30
"@babel/core" : " ^7.4.3" ,
30
31
"@babel/runtime" : " ^7.4.3" ,
32
+ "@react-native-community/eslint-config" : " 0.0.5" ,
31
33
"babel-jest" : " ^24.7.1" ,
34
+ "eslint" : " ^5.16.0" ,
35
+ "eslint-plugin-prettier" : " ^3.0.1" ,
32
36
"jest" : " ^24.7.1" ,
33
37
"metro-react-native-babel-preset" : " ^0.53.1" ,
38
+ "prettier" : " ^1.17.0" ,
34
39
"react-test-renderer" : " 16.8.3"
35
40
},
36
41
"jest" : {
You can’t perform that action at this time.
0 commit comments