Fix some lint issues introduced by Prettier
This commit is contained in:
Родитель
5eefeaa411
Коммит
7b433f5d68
|
@ -185,8 +185,9 @@ function parseTSDoc(foundComment: IFoundComment): void {
|
|||
// Since we have the compiler's analysis, use it to calculate the line/column information,
|
||||
// since this is currently faster than TSDoc's TextRange.getLocation() lookup.
|
||||
const location: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(message.textRange.pos);
|
||||
const formattedMessage: string =
|
||||
`${sourceFile.fileName}(${location.line + 1},${location.character + 1}):` + ` [TSDoc] ${message}`;
|
||||
const formattedMessage: string = `${sourceFile.fileName}(${location.line + 1},${
|
||||
location.character + 1
|
||||
}): [TSDoc] ${message}`;
|
||||
console.log(formattedMessage);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ export class DocBlockTag extends DocNode {
|
|||
public getTokenSequence(): TokenSequence {
|
||||
if (!this._tagNameExcerpt) {
|
||||
throw new Error(
|
||||
'DocBlockTag.getTokenSequence() failed because this object did not' + ' originate from a parsed input'
|
||||
'DocBlockTag.getTokenSequence() failed because this object did not originate from a parsed input'
|
||||
);
|
||||
}
|
||||
return this._tagNameExcerpt.content;
|
||||
|
|
Загрузка…
Ссылка в новой задаче