Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Nov 23, 2023
1 parent 2096598 commit 55f6a60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/print/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const printer: Printer<Node | undefined> = {
if (
node?.type === 'ExportDefaultDeclaration' &&
(node.declaration.extra?.['isGlimmerTemplate'] ||
(node.declaration.type === 'TSAsExpression' &&
node.declaration.expression.extra?.['isGlimmerTemplate']))
(node.declaration.type === 'TSAsExpression' &&
node.declaration.expression.extra?.['isGlimmerTemplate']))
) {
if (hasPrettierIgnore) {
return printRawText(path, options);
Expand Down
4 changes: 3 additions & 1 deletion tests/helpers/ambiguous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ async function behavesLikeFormattedAmbiguousCase(
} catch (error: unknown) {
// Some of the ambiguous cases are Syntax Errors when parsed
const isSyntaxError =
error instanceof SyntaxError || String(error).startsWith('SyntaxError') || String(error).startsWith('Error: Parse Error');
error instanceof SyntaxError ||
String(error).startsWith('SyntaxError') ||
String(error).startsWith('Error: Parse Error');
if (!isSyntaxError) {
throw error;
}
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defineConfig } from 'vite';
export default defineConfig({
build: {
rollupOptions: {
external: ['content-tag']
external: ['content-tag'],
},
lib: {
entry: 'src/main.ts',
Expand Down

0 comments on commit 55f6a60

Please sign in to comment.