Skip to content

Commit

Permalink
lint: update tsslint and import config by URL
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jun 8, 2024
1 parent 24a102c commit b800eca
Show file tree
Hide file tree
Showing 6 changed files with 389 additions and 400 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@tsslint/cli": "latest",
"@tsslint/config": "latest",
"@volar/language-service": "~2.3.0-alpha.5",
"@volar/tsslint-config": "latest",
"typescript": "latest",
"vscode-languageserver-protocol": "^3.17.5"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/emmet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function create({

isAdditionalCompletion: true,

async provideCompletionItems(document, position, completionContext) {
provideCompletionItems(document, position, completionContext) {
const completionResult = provideCompletionItemsInternal(document, position, completionContext);
if (!completionResult) {
lastCompletionType = undefined;
Expand Down
4 changes: 2 additions & 2 deletions packages/markdown/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function create({
const parser: IMdParser = {
slugifier: githubSlugifier,
async tokenize(document) {
return md.parse(document.getText(), {});
return await md.parse(document.getText(), {});
}
};
const workspace = getMarkdownWorkspace();
Expand Down Expand Up @@ -294,7 +294,7 @@ export function create({
onDidDeleteMarkdownDocument: onDidDeleteMarkdownDocument.event,

async openMarkdownDocument(resource) {
return getTextDocument(resource);
return await getTextDocument(resource);
},

async readDirectory(resource) {
Expand Down
4 changes: 2 additions & 2 deletions packages/typescript/lib/plugins/semantic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,11 @@ export function create(
});
},

async provideDiagnostics(document, token) {
provideDiagnostics(document, token) {
return provideDiagnosticsWorker(document, token, 'syntactic');
},

async provideSemanticDiagnostics(document, token) {
provideSemanticDiagnostics(document, token) {
return provideDiagnosticsWorker(document, token, 'semantic');
},

Expand Down
Loading

0 comments on commit b800eca

Please sign in to comment.