Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Lazarev <w@kich.dev>
  • Loading branch information
wKich committed Jul 17, 2024
1 parent ef4808a commit 657953c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/templates/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare global {

// NOTE: esbuild iief format doesn't support top-level await
;(async () => {
const { InteractorTable, MatcherTable } = await (await import('./interactors')).getImports()
let { InteractorTable, MatcherTable } = await (await import('./interactors')).getImports()

window.interactorAgent = {
interactors: InteractorTable,
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/templates/interactors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ const imports: { [moduleName: string]: { interactors: { name: string }[], matche
const uniqueNames = new Map<string, string>();

export async function getImports() {
const result = {
let result = {
InteractorTable,
MatcherTable,
imports
}

if (isInitialized) return result

const modules = await (await import('./modules')).modules();
let modules = await (await import('./modules')).modules();

for (let moduleName in modules) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 657953c

Please sign in to comment.