mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Enable "object-literal-shorthand" lint rule (#16987)
This commit is contained in:
1 parent
dc81b456e2
commit
e7dc2a67ca
32 files changed
+94
-174
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user