Skip to content

Commit

Permalink
Ignore typescipt error for conditional in resolveSpeedscope
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Jan 8, 2025
1 parent a5ceb0b commit de4b963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/theme/src/cli/services/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export async function profile(
}

async function resolveSpeedscope() {
// @ts-ignore

Check failure on line 50 in packages/theme/src/cli/services/profile.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/theme/src/cli/services/profile.ts#L50

[@typescript-eslint/ban-ts-comment] Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free.
if (import.meta.resolve) {
return import.meta.resolve('speedscope/dist/release/index.html')
} else {
Expand Down

0 comments on commit de4b963

Please sign in to comment.