Skip to content

Commit

Permalink
chore(lint): bump tsslint to 1.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 18, 2024
1 parent 335381e commit f03a02f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 40 deletions.
2 changes: 1 addition & 1 deletion packages/language-core/lib/codegen/globalTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function generateGlobalTypes(lib: string, target: number, strictTemplates
: __VLS_IsFunction<Events, CamelizedEvent> extends true
? { [K in onEvent]?: Events[CamelizedEvent] }
: Props
)${ strictTemplates ? '' : ' & Record<string, unknown>' };
)${strictTemplates ? '' : ' & Record<string, unknown>'};
// fix https://github.com/vuejs/language-tools/issues/926
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R
Expand Down
2 changes: 1 addition & 1 deletion packages/language-core/lib/parsers/scriptSetupRanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export function parseBindingRanges(ts: typeof import('typescript'), ast: ts.Sour
if (ts.isVariableStatement(node)) {
for (const decl of node.declarationList.declarations) {
const vars = _findBindingVars(decl.name);
bindings.push(...vars.map((range) => ({ range })));
bindings.push(...vars.map(range => ({ range })));
}
}
else if (ts.isFunctionDeclaration(node)) {
Expand Down
75 changes: 37 additions & 38 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f03a02f

Please sign in to comment.