chore(cli): enable noUnusedLocals (#52857)

This commit is contained in:
Kit Langton 2026-10-02 15:45:05 -07:00 • committed by GitHub
parent cf7fcfad0a
commit c1536734ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,6 @@
import { EOL } from "node:os"
import { Cause, Effect, Exit } from "effect"
import { OpenCode, type PluginInfo } from "@opencode/client"
import { OpenCode } from "@opencode/client"
import { Service } from "@opencode/client/effect/service"
import { Npm } from "@opencode/util/npm"
import { Config } from "../../../config"

View file

@ -1,5 +1,4 @@
import { EOL } from "node:os"
import path from "node:path"
import { readFile, rename, writeFile } from "node:fs/promises"
import { Effect } from "effect"
import { applyEdits, modify, parse, type ParseError } from "jsonc-parser"

View file

@ -1,5 +1,5 @@
import { Service, type Endpoint } from "@opencode/client/effect/service"
import { OpenCode, type OpenCodeClient, type SessionMessageAssistantTool } from "@opencode/client/promise"
import { OpenCode, type SessionMessageAssistantTool } from "@opencode/client/promise"
import { FSUtil } from "@opencode/util/fs-util"
import { open } from "node:fs/promises"
import path from "node:path"

View file

@ -1,4 +1,3 @@
import { Service } from "@opencode/client/effect/service"
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner"
import { LayerNode } from "@opencode/util/effect/layer-node"
import { Deferred, Effect, Schema, Stream } from "effect"

View file

@ -5,7 +5,8 @@
"jsx": "preserve",
"jsxImportSource": "@opentui/solid",
"lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"],
"noUncheckedIndexedAccess": false
"noUncheckedIndexedAccess": false,
"noUnusedLocals": true
},
"exclude": ["dist", "dist-node"],
"references": [{ "path": "../core" }]