Skip to content

Commit 3f2720c

Browse files
committed
fix
1 parent a45a6a1 commit 3f2720c

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

packages/language-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export {
44
mapSvelteCheckDiagnostics,
55
SvelteCheck,
66
SvelteCheckDiagnosticSource,
7-
SvelteCheckOptions,
7+
SvelteCheckOptions
88
} from './svelte-check';

packages/language-server/src/plugins/typescript/features/DiagnosticsProvider.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ export function mapAndFilterDiagnostics(
154154
diagnostics = diagnostics
155155
.filter(notGenerated)
156156
.filter(not(isUnusedReactiveStatementLabel))
157-
.filter((diagnostic) =>
158-
!expectedTransitionThirdArgument(diagnostic, tsDoc, lang)
159-
);
157+
.filter((diagnostic) => !expectedTransitionThirdArgument(diagnostic, tsDoc, lang));
160158

161159
if (lang) {
162160
diagnostics = resolveNoopsInReactiveStatements(lang, diagnostics);

packages/svelte-check/src/options.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ export function parseOptions(cb: (opts: SvelteCheckCliOptions) => any) {
4040
'Use incremental checks with a disk cache of svelte2tsx outputs. Requires writing transpiled Svelte files to disk (.svelte-kit if available, else .svelte-check)',
4141
false
4242
)
43-
.option('--tsgo', 'Use tsgo for TypeScript diagnostics. Requires writing transpiled Svelte files to disk (.svelte-kit if available, else .svelte-check)', false)
43+
.option(
44+
'--tsgo',
45+
'Use tsgo for TypeScript diagnostics. Requires writing transpiled Svelte files to disk (.svelte-kit if available, else .svelte-check)',
46+
false
47+
)
4448
.option(
4549
'--tsconfig',
4650
'Pass a path to a tsconfig or jsconfig file. The path can be relative to the workspace path or absolute. Doing this means that only files matched by the files/include/exclude pattern of the config file are diagnosed. It also means that errors from TypeScript and JavaScript files are reported. When not given, searches for the next upper tsconfig/jsconfig in the workspace path.'

packages/svelte2tsx/src/svelte2tsx/nodes/ExportedNames.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ export class ExportedNames {
102102
// TS types are not allowed in JS files, but TS will still pick it up and the ignore comment will filter out the error
103103
const kitType =
104104
isKitExport && !type ? `: import('./$types.js').Snapshot` : '';
105-
this.emitKitType(kitType, n.name.getStart() + this.astOffset, n.name.end + this.astOffset);
105+
this.emitKitType(
106+
kitType,
107+
n.name.getStart() + this.astOffset,
108+
n.name.end + this.astOffset
109+
);
106110
}
107111
});
108112
}

packages/svelte2tsx/test/svelte2tsx/samples/jsdoc-sveltekit-autotypes/+page.svelte renamed to packages/svelte2tsx/test/svelte2tsx/samples/jsdoc-sveltekit-autotypes.v5/+page.svelte

File renamed without changes.

packages/svelte2tsx/test/svelte2tsx/samples/jsdoc-sveltekit-autotypes/expectedv2.ts renamed to packages/svelte2tsx/test/svelte2tsx/samples/jsdoc-sveltekit-autotypes.v5/expectedv2.ts

File renamed without changes.

0 commit comments

Comments
 (0)