From 7ee8adf85f07096113667bb82a629a3f58136d80 Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Wed, 17 Jan 2024 11:20:50 +0100 Subject: [PATCH] run lint across all dirs --- example/index.ts | 4 ++-- example/src/App.tsx | 37 +++++++++++++++++++------------------ 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/example/index.ts b/example/index.ts index 117ddcae4..ef707c254 100644 --- a/example/index.ts +++ b/example/index.ts @@ -1,5 +1,5 @@ -import { AppRegistry } from 'react-native'; +import {AppRegistry} from 'react-native'; import App from './src/App'; -import { name as appName } from './app.json'; +import {name as appName} from './app.json'; AppRegistry.registerComponent(appName, () => App); diff --git a/example/src/App.tsx b/example/src/App.tsx index dca1df65d..6d14c9079 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,20 +1,11 @@ import * as React from 'react'; -import { Button, Platform, StyleSheet, Text, View } from 'react-native'; +import {Button, Platform, StyleSheet, Text, View} from 'react-native'; -import { MarkdownTextInput } from '@expensify/react-native-live-markdown'; -import type { TextInput } from 'react-native'; +import {MarkdownTextInput} from '@expensify/react-native-live-markdown'; +import type {TextInput} from 'react-native'; -const DEFAULT_TEXT = [ - 'Hello, *world*!', - 'https://expensify.com', - '# Lorem ipsum', - '> Hello world', - '`foo`', - '```\nbar\n```', - '@here', - '@someone@swmansion.com', -].join('\n'); +const DEFAULT_TEXT = ['Hello, *world*!', 'https://expensify.com', '# Lorem ipsum', '> Hello world', '`foo`', '```\nbar\n```', '@here', '@someone@swmansion.com'].join('\n'); function isWeb() { return Platform.OS === 'web'; @@ -58,7 +49,7 @@ function getArchitecture() { } function getReactNativeVersion() { - const { major, minor, patch } = Platform.constants.reactNativeVersion; + const {major, minor, patch} = Platform.constants.reactNativeVersion; return `${major}.${minor}.${patch}`; } @@ -115,22 +106,32 @@ export default function App() { style={styles.input} /> */} {JSON.stringify(value)} -