Skip to content

Commit

Permalink
lint: use @johnsoncodehk/tsslint-config (#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk authored Nov 5, 2024
1 parent eb5a82c commit baa843e
Show file tree
Hide file tree
Showing 7 changed files with 303 additions and 312 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@
"@vue/language-core": "2.1.10",
"@vue/language-server": "2.1.10",
"@vue/typescript-plugin": "2.1.10",
"esbuild": "~0.21.0",
"esbuild": "latest",
"esbuild-plugin-copy": "latest",
"esbuild-visualizer": "latest",
"reactive-vscode": "0.2.7-beta.1",
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 @@ -372,7 +372,7 @@ export function parseScriptSetupRanges(
}
});
for (const prop of node.arguments[0].properties) {
if ((ts.isPropertyAssignment(prop)) && getNodeText(ts, prop.name, ast) === 'name' && ts.isStringLiteral(prop.initializer)) {
if (ts.isPropertyAssignment(prop) && getNodeText(ts, prop.name, ast) === 'name' && ts.isStringLiteral(prop.initializer)) {
options.name = prop.initializer.text;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const plugin = createLanguageServicePlugin(
const timer = setInterval(() => {
if (info.project['program']) {
clearInterval(timer);
(info.project['program'] as any).__vue__ = { language };
info.project['program'].__vue__ = { language };
}
}, 50);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-plugin/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function tryListen(server: net.Server, namedPipePath: string) {
resolve(true);
};
const onError = (err: any) => {
if ((err as any).code === 'ECONNREFUSED') {
if (err.code === 'ECONNREFUSED') {
try {
console.log('[Vue Named Pipe Client] Deleting:', namedPipePath);
fs.promises.unlink(namedPipePath);
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-plugin/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function connect(namedPipePath: string, timeout?: number) {
resolve(socket);
};
const onError = (err: any) => {
if ((err as any).code === 'ECONNREFUSED') {
if (err.code === 'ECONNREFUSED') {
try {
console.log('[Vue Named Pipe Client] Deleting:', namedPipePath);
fs.promises.unlink(namedPipePath);
Expand Down
Loading

0 comments on commit baa843e

Please sign in to comment.