Commit 1 of 1:
14ad133b08
fix(lint): drop fourteen unused imports that pickier now errors on
whole branch
Review threads live on the whole diff, not on one commit, so
none are shown here - a thread's line means something in the
branch's final form, and painting it into an intermediate
step would put it on code it is not about.
examples/ecommerce-app/src/main.ts modified +1 -1 Changes to examples/ecommerce-app/src/main.ts ⋯ 5 lines Show the 5 lines above this hunk @@ -6,7 +6,7 @@6 6 7 7 8 8 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
examples/voice-buddy.ts modified +0 -1 Changes to examples/voice-buddy.ts ⋯ 16 lines Show the 16 lines above this hunk @@ -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 23 22 const stxPath = '/Users/glennmichaeltorregosa/Documents/Projects/stx/examples/voice-buddy.stx'
packages/android/src/index.ts modified +1 -1 Changes to packages/android/src/index.ts ⋯ 3 lines Show the 3 lines above this hunk @@ -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
packages/ios/src/index.ts modified +1 -1 Changes to packages/ios/src/index.ts ⋯ 4 lines Show the 4 lines above this hunk @@ -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' )
packages/react/src/hooks/useTray.ts modified +1 -1 Changes to packages/react/src/hooks/useTray.ts @@ -1,4 +1,4 @@ 1 - import { useCallback , useEffect , useState } from 'react' ; 1 + import { useCallback , useState } from 'react' ; 2 2 import { useCraft } from '../index' ; 3 3 4 4 interface TrayMenuItem {
packages/react/src/hooks/useWindow.ts modified +1 -1 Changes to packages/react/src/hooks/useWindow.ts @@ -1,4 +1,4 @@ 1 - import { useEffect , useState , useCallback } from 'react' ; 1 + import { useState , useCallback } from 'react' ; 2 2 import { useCraft } from '../index' ; 3 3 4 4 interface WindowOptions {
packages/svelte/src/stores/craft.ts modified +1 -1 Changes to packages/svelte/src/stores/craft.ts @@ -1,4 +1,4 @@ 1 - import { writable , derived , get } from 'svelte/store' ; 1 + import { writable , derived } from 'svelte/store' ; 2 2 3 3 interface CraftAPI { 4 4 getPlatform ( ) : Promise < { platform : string ; version : string } > ;
packages/typescript/src/logging/index.ts modified +1 -1 Changes to packages/typescript/src/logging/index.ts ⋯ 3 lines Show the 3 lines above this hunk @@ -4,7 +4,7 @@4 4 * / 5 5 6 6 import { writeFileSync , appendFileSync , existsSync , mkdirSync , readFileSync } from 'fs' 7 - import { join , dirname } from 'path' 7 + import { dirname } from 'path' 8 8 import { hostname as osHostname } from 'os' 9 9 10 10
packages/typescript/src/signing/index.ts modified +1 -1 Changes to packages/typescript/src/signing/index.ts ⋯ 3 lines Show the 3 lines above this hunk @@ -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
packages/typescript/src/updater/index.ts modified +0 -1 Changes to packages/typescript/src/updater/index.ts ⋯ 6 lines Show the 6 lines above this hunk @@ -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
packages/typescript/src/utils/svelte.ts modified +1 -1 Changes to packages/typescript/src/utils/svelte.ts ⋯ 2 lines Show the 2 lines above this hunk @@ -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