From a996b2ae25a0e311cd62cd443fe31e17be9b349b Mon Sep 17 00:00:00 2001 From: Lizzi Lindboe Date: Wed, 14 Aug 2024 12:19:49 -0700 Subject: [PATCH] Spacing is unused when generating with no demo causes a lint error in a generated project, so fixed --- boilerplate/app/theme/styles.ts | 2 +- test/vanilla/__snapshots__/ignite-remove-demo.test.ts.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boilerplate/app/theme/styles.ts b/boilerplate/app/theme/styles.ts index 87d71e2e3..748e86083 100644 --- a/boilerplate/app/theme/styles.ts +++ b/boilerplate/app/theme/styles.ts @@ -1,5 +1,5 @@ import { ViewStyle } from "react-native" -import { spacing } from "./spacing" +import { spacing } from "./spacing" // @demo remove-current-line /* Use this file to define styles that are used in multiple places in your app. */ export const $styles = { diff --git a/test/vanilla/__snapshots__/ignite-remove-demo.test.ts.snap b/test/vanilla/__snapshots__/ignite-remove-demo.test.ts.snap index c192d3858..f4bd4df4d 100644 --- a/test/vanilla/__snapshots__/ignite-remove-demo.test.ts.snap +++ b/test/vanilla/__snapshots__/ignite-remove-demo.test.ts.snap @@ -66,7 +66,7 @@ removing file /user/home/ignite/app/screens/LoginScreen.tsx Found 'remove-file' in /user/home/ignite/app/screens/LoginScreen.tsx Found '@demo remove-current-line', '@demo remove-block-start', '@demo remove-block-end' in /user/home/ignite/app/screens/WelcomeScreen.tsx Found '@demo remove-current-line', '@demo remove-block-start', '@demo remove-block-end' in /user/home/ignite/app/services/api/api.ts - Found '@demo remove-block-start', '@demo remove-block-end' in /user/home/ignite/app/theme/styles.ts + Found '@demo remove-current-line', '@demo remove-block-start', '@demo remove-block-end' in /user/home/ignite/app/theme/styles.ts Removed empty directory '/user/home/ignite/.maestro' Removed empty directory '/user/home/ignite/app/screens/DemoShowroomScreen/demos' Removed empty directory '/user/home/ignite/app/screens/DemoShowroomScreen'