Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Mar 4, 2024
1 parent 2dfb5a5 commit 5538e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/src/lib/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export class ProgrammingLanguage extends Language {
this.languageModule = (await import("@dodona/dolos-parsers")).default[this.name];
this.languageModule ||= (await import(`tree-sitter-${this.name}`)).default;
if (this.languageModule === undefined) {
throw new LanguageError(`Could not find language module for ${this.name}, searched in @dodona/dolos-parsers and tree-sitter-${this.name}`);
throw new LanguageError(
`Could not find language module for ${this.name}, ` +
`searched in @dodona/dolos-parsers and tree-sitter-${this.name}`
);
}
}
return this.languageModule;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/test/tokenizer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ test("should be able to use external tree-sitter parsers (tree-sitter-json)", as
const tokenizer = await language.createTokenizer();
t.truthy(tokenizer);

const {tokens} = tokenizer.tokenizeFile(file);
const { tokens } = tokenizer.tokenizeFile(file);
t.truthy(tokens);
});

0 comments on commit 5538e34

Please sign in to comment.