Skip to content

Commit

Permalink
chore: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Apr 29, 2024
1 parent 1dd4a9c commit 22ca90f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/analyze/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import _traverse from '@babel/traverse';
import type * as t from '@babel/types';
import { processSetup } from './setupScript';
import { NodeCollection, getComment } from './utils';

const traverse: typeof _traverse
// @ts-expect-error unwarp default
= _traverse.default?.default || _traverse.default || _traverse;
Expand Down
1 change: 1 addition & 0 deletions src/analyze/setupScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Scope } from '@babel/traverse';
import _traverse from '@babel/traverse';
import type * as t from '@babel/types';
import { NodeCollection, NodeType, getComment } from './utils';

const traverse: typeof _traverse
// @ts-expect-error unwarp default
= _traverse.default?.default || _traverse.default || _traverse;
Expand Down
1 change: 1 addition & 0 deletions src/analyze/template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { babelParse, compileTemplate } from '@vue/compiler-sfc';
import _traverse from '@babel/traverse';

const traverse: typeof _traverse
// @ts-expect-error unwarp default
= _traverse.default?.default || _traverse.default || _traverse;
Expand Down

0 comments on commit 22ca90f

Please sign in to comment.