Skip to content

Commit

Permalink
Fix linting of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyi45 committed Oct 24, 2024
1 parent d619284 commit 1e745b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/src/build/prebuild/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface PrebuildOptions {
tabs: string[]
}

export interface PrebuildResult<T extends { severity: Severity }> extends TimedResult<T> {}
export type PrebuildResult<T extends { severity: Severity }> = TimedResult<T>;

export function createPrebuildCommand(
commandName: string,
Expand Down
4 changes: 2 additions & 2 deletions scripts/src/linting/typeimports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ function isImportSpecifier(spec: es.ImportDeclaration['specifiers'][number]): sp
}

function specToString(spec: es.ImportSpecifier) {
if (spec.imported.type === 'Identifier') {
if (spec.imported.type === 'Identifier') {
if (spec.imported.name === spec.local.name) {
return spec.imported.name;
}
return `${spec.imported.name} as ${spec.local.name}`;
}
return ''
return '';
}

const typeImportsPlugin = {
Expand Down

0 comments on commit 1e745b1

Please sign in to comment.