From 2dceadd28b1f82e26f9c26f29e11c1f6bdd8fe9b Mon Sep 17 00:00:00 2001 From: Ankit Tiwari Date: Thu, 20 Aug 2020 19:46:48 +0530 Subject: [PATCH] Fix lint issues --- packages/rn-tester/js/components/RNTesterNavbar.js | 4 ++-- packages/rn-tester/js/examples/Image/ImageExample.js | 1 - .../js/examples/MultiColumn/MultiColumnExample.js | 2 +- packages/rn-tester/js/examples/RTL/RTLExample.js | 10 +--------- .../examples/TVEventHandler/TVEventHandlerExample.js | 2 +- packages/rn-tester/js/utils/RNTesterList.android.js | 4 ++-- 6 files changed, 7 insertions(+), 16 deletions(-) diff --git a/packages/rn-tester/js/components/RNTesterNavbar.js b/packages/rn-tester/js/components/RNTesterNavbar.js index 0c5c0c2d01fe31..3dd4c92b06500b 100644 --- a/packages/rn-tester/js/components/RNTesterNavbar.js +++ b/packages/rn-tester/js/components/RNTesterNavbar.js @@ -160,8 +160,8 @@ const styles = StyleSheet.create({ }, activeBar: { borderTopWidth:2, - borderColor:'#005DFF' - } + borderColor:'#005DFF', + }, }); module.exports = RNTesterNavbar; diff --git a/packages/rn-tester/js/examples/Image/ImageExample.js b/packages/rn-tester/js/examples/Image/ImageExample.js index e94ad716a16142..b0d665ed31c305 100644 --- a/packages/rn-tester/js/examples/Image/ImageExample.js +++ b/packages/rn-tester/js/examples/Image/ImageExample.js @@ -13,7 +13,6 @@ const React = require('react'); const { - ActivityIndicator, Image, StyleSheet, Text, diff --git a/packages/rn-tester/js/examples/MultiColumn/MultiColumnExample.js b/packages/rn-tester/js/examples/MultiColumn/MultiColumnExample.js index e190a153138ee0..ca822b22c07d01 100644 --- a/packages/rn-tester/js/examples/MultiColumn/MultiColumnExample.js +++ b/packages/rn-tester/js/examples/MultiColumn/MultiColumnExample.js @@ -178,7 +178,7 @@ const styles = StyleSheet.create({ }); exports.title = 'FlatList - MultiColumn'; -exports.category = 'ListView' +exports.category = 'ListView'; exports.description = 'Performant, scrollable grid of data.'; exports.examples = [ { diff --git a/packages/rn-tester/js/examples/RTL/RTLExample.js b/packages/rn-tester/js/examples/RTL/RTLExample.js index 68545a45abb6ba..d6b1c1827edbc3 100644 --- a/packages/rn-tester/js/examples/RTL/RTLExample.js +++ b/packages/rn-tester/js/examples/RTL/RTLExample.js @@ -27,14 +27,6 @@ const { Button, } = require('react-native'); -type State = { - toggleStatus: any, - pan: Object, - linear: Object, - isRTL: boolean, - ... -}; - type RTLToggleState = {isRTL: boolean, ...}; type AnimationState = { @@ -643,7 +635,7 @@ const styles = StyleSheet.create({ }); exports.title = 'RTLExample'; -exports.category= 'UI'; +exports.category = 'UI'; exports.description = 'Examples to show how to apply components to RTL layout.'; exports.examples = [ { diff --git a/packages/rn-tester/js/examples/TVEventHandler/TVEventHandlerExample.js b/packages/rn-tester/js/examples/TVEventHandler/TVEventHandlerExample.js index af34bafc3ccd92..26aff1bfc30ef2 100644 --- a/packages/rn-tester/js/examples/TVEventHandler/TVEventHandlerExample.js +++ b/packages/rn-tester/js/examples/TVEventHandler/TVEventHandlerExample.js @@ -77,7 +77,7 @@ class TVEventHandlerView extends React.Component { exports.framework = 'React'; exports.title = 'TVEventHandler example'; -exports.category = 'iOS' +exports.category = 'iOS'; exports.description = 'iOS alerts and action sheets'; exports.examples = [ { diff --git a/packages/rn-tester/js/utils/RNTesterList.android.js b/packages/rn-tester/js/utils/RNTesterList.android.js index 5b94a39e9dd8fc..bb509d0f3b0103 100644 --- a/packages/rn-tester/js/utils/RNTesterList.android.js +++ b/packages/rn-tester/js/utils/RNTesterList.android.js @@ -57,7 +57,7 @@ const ComponentExamples: Array = [ }, { key: 'PressableExample', - category: 'UI', + category: 'UI', module: require('../examples/Pressable/PressableExample'), }, { @@ -119,7 +119,7 @@ const ComponentExamples: Array = [ const APIExamples: Array = [ { key: 'AccessibilityExample', - category: 'Basic', + category: 'Basic', module: require('../examples/Accessibility/AccessibilityExample'), }, {