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

This commit is contained in:
Andy authored and GitHub committed 2017-07-07 07:26:58 -07:00
1 parent dc81b456e2
commit e7dc2a67ca
32 files changed
+94 -174

No files matched your search

+2 -6
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 {