Repository navigation
fix(desktop): clear no-require-imports ESLint errors blocking #10096 - #10110
Merged
undivisible merged 1 commit intoJul 20, 2026
Conversation
…o-require-imports Clears the 2 ESLint errors blocking BasedHardware#10096 CI (nativeForeground.ts:45, userAssistRegistry.ts:46). The lazy require keeps nativeForeground importable off-Windows; scoped disable is the maintainer-suggested fix.
undivisible
merged commit Jul 20, 2026
e4ef1b1
into
BasedHardware:consolidation/linux-electron
1 check passed
Collaborator
|
ty :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a scoped
// eslint-disable-next-line @typescript-eslint/no-require-importsabove the two lazyrequire('koffi')calls (nativeForeground.ts:45, userAssistRegistry.ts:46) so the Desktop Windows CI / Typecheck · Lint · Test check goes green on #10096.The lazy require is the right idea (keeps
nativeForegroundimportable off-Windows); it just trips theno-require-importsrule. This is the exact fix the maintainer requested in the #10096 review.Test plan
cd desktop/windows && npx eslint src/main/usage/nativeForeground.ts src/main/usage/userAssistRegistry.ts→ nono-require-importserrors.Notes
Pushed from the
consolidation/linux-electronHEAD. Intended to be merged into that branch (or squashed into its feat commit) so #10096 can land.