Skip to content

Commit

Permalink
ci(lint): auto-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 3, 2025
1 parent e56afc3 commit d2bd994
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/src/features/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function getPackageJsonOfWorkspacePackage(folder: string, pkg: string) {
const path = require.resolve(pkg + '/package.json', { paths: [folder] });
return {
path,
json: require(path) as { version: string },
json: require(path) as { version: string; },
};
} catch { }
}
2 changes: 1 addition & 1 deletion extensions/vscode/src/hybridMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const enabledHybridMode = computed(() => {
return true;
}
return config.server.hybridMode;
})
});

export const enabledTypeScriptPlugin = computed(() => {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/language-core/lib/codegen/script/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function* generateTemplateComponents(options: ScriptCodegenOptions): Generator<C

if (options.sfc.script && options.scriptRanges?.exportDefault?.componentsOption) {
const { componentsOption } = options.scriptRanges.exportDefault;
yield `const __VLS_componentsOption = `
yield `const __VLS_componentsOption = `;
yield [
options.sfc.script.content.slice(componentsOption.start, componentsOption.end),
'script',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function* generateInterpolation(
options: {
ts: typeof ts,
destructuredPropNames: Set<string> | undefined,
templateRefNames: Set<string> | undefined
templateRefNames: Set<string> | undefined;
},
ctx: TemplateCodegenContext,
source: string,
Expand Down
12 changes: 6 additions & 6 deletions packages/language-core/lib/parsers/scriptSetupRanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,35 @@ type DefineProp = {
defaultValue?: TextRange;
required?: boolean;
isModel?: boolean;
}
};

type DefineProps = CallExpressionRange & {
name?: string;
destructured?: Set<string>;
destructuredRest?: string;
statement: TextRange;
}
};

type WithDefaults = Pick<CallExpressionRange, 'callExp' | 'exp' | 'arg'>;

type DefineEmits = CallExpressionRange & {
name?: string;
hasUnionTypeArg?: boolean;
statement: TextRange;
}
};

type DefineSlots = CallExpressionRange & {
name?: string;
isObjectBindingPattern?: boolean;
statement: TextRange;
}
};

type DefineExpose = CallExpressionRange;

type DefineOptions = {
name?: string;
inheritAttrs?: string;
}
};

type UseAttrs = CallExpressionRange;

Expand All @@ -58,7 +58,7 @@ type UseSlots = CallExpressionRange;

type UseTemplateRef = CallExpressionRange & {
name?: string;
}
};

export interface ScriptSetupRanges extends ReturnType<typeof parseScriptSetupRanges> { }

Expand Down

0 comments on commit d2bd994

Please sign in to comment.