Enable "object-literal-shorthand" lint rule (#16987)

This commit is contained in:
Andy
2017-07-07 07:26:58 -07:00
committed by GitHub
parent dc81b456e2
commit e7dc2a67ca
32 changed files with 94 additions and 174 deletions

View File

@@ -41,13 +41,9 @@ namespace ts {
}
function getFileReference() {
const file = scanner.getTokenValue();
const fileName = scanner.getTokenValue();
const pos = scanner.getTokenPos();
return {
fileName: file,
pos: pos,
end: pos + file.length
};
return { fileName, pos, end: pos + fileName.length };
}
function recordAmbientExternalModule(): void {