Fix some lint issues introduced by Prettier

This commit is contained in:
Pete Gonzalez 2020-11-24 20:33:42 -08:00
Родитель 5eefeaa411
Коммит 7b433f5d68
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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;