Skip to content

Commit a0203a7

Browse files
committed
fix
1 parent 66cfccb commit a0203a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/parser/typescript/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ESLintExtendedProgram } from "..";
22
import type { NormalizedParserOptions } from "../parser-options";
3-
import { parseScriptInSvelte } from "../script";
3+
import { parseScript, parseScriptInSvelte } from "../script";
44
import type { AnalyzeTypeScriptContext } from "./analyze";
55
import { analyzeTypeScript, analyzeTypeScriptInSvelte } from "./analyze";
66
import type { TSESParseForESLintResult } from "./types";
@@ -32,7 +32,7 @@ export function parseTypeScript(
3232
): ESLintExtendedProgram {
3333
const tsCtx = analyzeTypeScript(code, attrs, parserOptions);
3434

35-
const result = parseScriptInSvelte(tsCtx.script, attrs, parserOptions);
35+
const result = parseScript(tsCtx.script, attrs, parserOptions);
3636

3737
tsCtx.restoreContext.restore(result as unknown as TSESParseForESLintResult);
3838

0 commit comments

Comments
 (0)