Skip to content

Commit 53e43a9

Browse files
authored
run yarn lint --fix (#9013)
1 parent bb30b59 commit 53e43a9

File tree

225 files changed

+555
-433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+555
-433
lines changed

src/Splash.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Animated, {
1515
withTiming,
1616
} from 'react-native-reanimated'
1717
import {useSafeAreaInsets} from 'react-native-safe-area-context'
18-
import Svg, {Path, SvgProps} from 'react-native-svg'
18+
import Svg, {Path, type SvgProps} from 'react-native-svg'
1919
import {Image} from 'expo-image'
2020
import * as SplashScreen from 'expo-splash-screen'
2121

src/alf/themes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {atoms} from '#/alf/atoms'
2-
import {Palette, Theme} from '#/alf/types'
2+
import {type Palette, type Theme} from '#/alf/types'
33
import {
44
BLUE_HUE,
55
defaultScale,

src/alf/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {StyleProp, TextStyle, ViewStyle} from 'react-native'
1+
import {type StyleProp, type TextStyle, type ViewStyle} from 'react-native'
22

33
export type TextStyleProp = {
44
style?: StyleProp<TextStyle>

src/alf/util/themeSelector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ThemeName} from '#/alf/types'
1+
import {type ThemeName} from '#/alf/types'
22

33
export function select<T>(name: ThemeName, options: Record<ThemeName, T>) {
44
switch (name) {

src/alf/util/useColorModeTheme.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react'
2-
import {ColorSchemeName, useColorScheme} from 'react-native'
2+
import {type ColorSchemeName, useColorScheme} from 'react-native'
33

44
import {isWeb} from '#/platform/detection'
55
import {useThemePrefs} from '#/state/shell'
66
import {dark, dim, light} from '#/alf/themes'
7-
import {ThemeName} from '#/alf/types'
7+
import {type ThemeName} from '#/alf/types'
88

99
export function useColorModeTheme(): ThemeName {
1010
const theme = useThemeName()

src/alf/util/useGutters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
import {Breakpoint, useBreakpoints} from '#/alf/breakpoints'
3+
import {type Breakpoint, useBreakpoints} from '#/alf/breakpoints'
44
import * as tokens from '#/alf/tokens'
55

66
type Gutter = 'compact' | 'base' | 'wide' | 0

src/components/Dialog/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22

3-
import {DialogControlProps} from '#/components/Dialog/types'
3+
import {type DialogControlProps} from '#/components/Dialog/types'
44

55
export function useAutoOpen(control: DialogControlProps, showTimeout?: number) {
66
React.useEffect(() => {

src/components/Fill.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from 'react'
21
import {View} from 'react-native'
2+
import type React from 'react'
33

4-
import {atoms as a, ViewStyleProp} from '#/alf'
4+
import {atoms as a, type ViewStyleProp} from '#/alf'
55

66
export function Fill({
77
children,

src/components/GradientFill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {LinearGradient} from 'expo-linear-gradient'
22

3-
import {atoms as a, tokens, ViewStyleProp} from '#/alf'
3+
import {atoms as a, type tokens, type ViewStyleProp} from '#/alf'
44

55
export function GradientFill({
66
gradient,

src/components/IconCircle.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import {View} from 'react-native'
33
import {
44
atoms as a,
55
flatten,
6-
TextStyleProp,
6+
type TextStyleProp,
77
useTheme,
8-
ViewStyleProp,
8+
type ViewStyleProp,
99
} from '#/alf'
10-
import {Props} from '#/components/icons/common'
11-
import {Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth'
10+
import {type Props} from '#/components/icons/common'
11+
import {type Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth'
1212

1313
export function IconCircle({
1414
icon: Icon,

0 commit comments

Comments
 (0)