also looking at this
fix(lint): drop fourteen unused imports that pickier now errors on
#102
12 files
+10
-12
| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | // NOTE: Use `win` alias (for windowManager) instead of `window`. `Platform` (value) |
| 7 | 7 | // is exported from 'craft-native/components' to avoid a conflict with the |
| 8 | 8 | // Platform type at the top level. |
| 9 | import { db, http, win as window, haptics, secureStorage } from 'craft-native' | |
| 9 | import { db, win as window, haptics } from 'craft-native' | |
| 10 | 10 | import { Platform } from 'craft-native/components' |
| 11 | 11 | |
| 12 | 12 | // Types |
| @@ -17,7 +17,6 @@ | ||
| 17 | 17 | |
| 18 | 18 | import { createApp } from '../packages/typescript/src/index.ts' |
| 19 | 19 | import { readFileSync } from 'node:fs' |
| 20 | import { join } from 'node:path' | |
| 21 | 20 | |
| 22 | 21 | // Path to the STX file |
| 23 | 22 | const stxPath = '/Users/glennmichaeltorregosa/Documents/Projects/stx/examples/voice-buddy.stx' |
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | * Generates native Android apps from web content using WebView. |
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs' | |
| 7 | import { cpSync, existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from 'node:fs' | |
| 8 | 8 | import { dirname, join, resolve } from 'node:path' |
| 9 | 9 | import { $ } from 'bun' |
| 10 | 10 | |
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | */ |
| 6 | 6 | |
| 7 | 7 | import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs' |
| 8 | import { basename, dirname, join, resolve } from 'node:path' | |
| 8 | import { dirname, join, resolve } from 'node:path' | |
| 9 | 9 | import { $ } from 'bun' |
| 10 | 10 | |
| 11 | 11 | const TEMPLATES_DIR = join(dirname(import.meta.dir), 'templates') |
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | 6 | import { execFile, spawn } from 'child_process' |
| 7 | import { existsSync, readFileSync, unlinkSync, writeFileSync } from 'fs' | |
| 7 | import { existsSync, unlinkSync, writeFileSync } from 'fs' | |
| 8 | 8 | import { join, basename } from 'path' |
| 9 | 9 | import { promisify } from 'util' |
| 10 | 10 | |
| @@ -7,7 +7,6 @@ import { createReadStream, createWriteStream, existsSync, mkdirSync, readFileSyn | ||
| 7 | 7 | import { join, basename, dirname } from 'path' |
| 8 | 8 | import { execFileSync, spawn } from 'child_process' |
| 9 | 9 | import { createHash } from 'crypto' |
| 10 | import { pipeline } from 'stream/promises' | |
| 11 | 10 | import { EventEmitter } from 'events' |
| 12 | 11 | |
| 13 | 12 | // Types |
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | * @module @craft-native/svelte |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | import { writable, derived, readable, get, type Writable, type Readable } from 'svelte/store'; | |
| 6 | import { writable, derived, type Writable, type Readable } from 'svelte/store'; | |
| 7 | 7 | import { onMount, onDestroy } from 'svelte'; |
| 8 | 8 | import { windowManager } from '../api/window.js'; |
| 9 | 9 | |