ReviewOS

also looking at this

craft-native/craft

fix(lint): drop fourteen unused imports that pickier now errors on

#102
Merged glennmichael123 wants to merge fix/lint-unused-imports into main
12 files +10 -12
examples/ecommerce-app/src/main.tsmodified+1-1
Changes to examples/ecommerce-app/src/main.ts
@@ -6,7 +6,7 @@
66// NOTE: Use `win` alias (for windowManager) instead of `window`. `Platform` (value)
77// is exported from 'craft-native/components' to avoid a conflict with the
88// Platform type at the top level.
9import { db, http, win as window, haptics, secureStorage } from 'craft-native'
9import { db, win as window, haptics } from 'craft-native'
1010import { Platform } from 'craft-native/components'
1111
1212// Types
examples/voice-buddy.tsmodified+0-1
Changes to examples/voice-buddy.ts
@@ -17,7 +17,6 @@
1717
1818import { createApp } from '../packages/typescript/src/index.ts'
1919import { readFileSync } from 'node:fs'
20import { join } from 'node:path'
2120
2221// Path to the STX file
2322const stxPath = '/Users/glennmichaeltorregosa/Documents/Projects/stx/examples/voice-buddy.stx'
packages/android/src/index.tsmodified+1-1
Changes to packages/android/src/index.ts
@@ -4,7 +4,7 @@
44 * Generates native Android apps from web content using WebView.
55 */
66
7import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs'
7import { cpSync, existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from 'node:fs'
88import { dirname, join, resolve } from 'node:path'
99import { $ } from 'bun'
1010
packages/ios/src/index.tsmodified+1-1
Changes to packages/ios/src/index.ts
@@ -5,7 +5,7 @@
55 */
66
77import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs'
8import { basename, dirname, join, resolve } from 'node:path'
8import { dirname, join, resolve } from 'node:path'
99import { $ } from 'bun'
1010
1111const TEMPLATES_DIR = join(dirname(import.meta.dir), 'templates')
packages/react/src/hooks/useTray.tsmodified+1-1
Changes to packages/react/src/hooks/useTray.ts
@@ -1,4 +1,4 @@
1import { useCallback, useEffect, useState } from 'react';
1import { useCallback, useState } from 'react';
22import { useCraft } from '../index';
33
44interface TrayMenuItem {
packages/react/src/hooks/useWindow.tsmodified+1-1
Changes to packages/react/src/hooks/useWindow.ts
@@ -1,4 +1,4 @@
1import { useEffect, useState, useCallback } from 'react';
1import { useState, useCallback } from 'react';
22import { useCraft } from '../index';
33
44interface WindowOptions {
packages/svelte/src/stores/craft.tsmodified+1-1
Changes to packages/svelte/src/stores/craft.ts
@@ -1,4 +1,4 @@
1import { writable, derived, get } from 'svelte/store';
1import { writable, derived } from 'svelte/store';
22
33interface CraftAPI {
44 getPlatform(): Promise<{ platform: string; version: string }>;
packages/typescript/src/logging/index.tsmodified+1-1
Changes to packages/typescript/src/logging/index.ts
@@ -4,7 +4,7 @@
44 */
55
66import { writeFileSync, appendFileSync, existsSync, mkdirSync, readFileSync } from 'fs'
7import { join, dirname } from 'path'
7import { dirname } from 'path'
88import { hostname as osHostname } from 'os'
99
1010// Types
packages/typescript/src/signing/index.tsmodified+1-1
Changes to packages/typescript/src/signing/index.ts
@@ -4,7 +4,7 @@
44 */
55
66import { execFile, spawn } from 'child_process'
7import { existsSync, readFileSync, unlinkSync, writeFileSync } from 'fs'
7import { existsSync, unlinkSync, writeFileSync } from 'fs'
88import { join, basename } from 'path'
99import { promisify } from 'util'
1010
packages/typescript/src/styles/sidebar-templates.tsmodified+1-1
Changes to packages/typescript/src/styles/sidebar-templates.ts
@@ -8,7 +8,7 @@
88 * @module @craft-native/styles/sidebar-templates
99 */
1010
11import { tahoeStyles, arcStyles, orbstackStyles, cx } from './sidebars.js'
11import { tahoeStyles, arcStyles, orbstackStyles } from './sidebars.js'
1212
1313// ============================================================================
1414// Types
packages/typescript/src/updater/index.tsmodified+0-1
Changes to packages/typescript/src/updater/index.ts
@@ -7,7 +7,6 @@ import { createReadStream, createWriteStream, existsSync, mkdirSync, readFileSyn
77import { join, basename, dirname } from 'path'
88import { execFileSync, spawn } from 'child_process'
99import { createHash } from 'crypto'
10import { pipeline } from 'stream/promises'
1110import { EventEmitter } from 'events'
1211
1312// Types
packages/typescript/src/utils/svelte.tsmodified+1-1
Changes to packages/typescript/src/utils/svelte.ts
@@ -3,7 +3,7 @@
33 * @module @craft-native/svelte
44 */
55
6import { writable, derived, readable, get, type Writable, type Readable } from 'svelte/store';
6import { writable, derived, type Writable, type Readable } from 'svelte/store';
77import { onMount, onDestroy } from 'svelte';
88import { windowManager } from '../api/window.js';
99