Skip to content

Commit 8896c67

Browse files
committed
object-shorthand
1 parent d7f5def commit 8896c67

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"no-unused-expressions": "off",
111111
"no-unused-labels": "error",
112112
"no-var": "off",
113-
"object-shorthand": "off",
113+
"object-shorthand": "error",
114114
"one-var": "off",
115115
"prefer-const": "off",
116116
"prefer-object-spread": "error",

scripts/buildProtocol.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ function writeProtocolFile(outputFile: string, protocolTs: string, typeScriptSer
139139

140140
if (protocolDts === undefined) {
141141
const diagHost: ts.FormatDiagnosticsHost = {
142-
getCanonicalFileName: function (f) { return f; },
143-
getCurrentDirectory: function() { return '.'; },
144-
getNewLine: function() { return "\r\n"; }
142+
getCanonicalFileName(f) { return f; },
143+
getCurrentDirectory() { return '.'; },
144+
getNewLine() { return "\r\n"; }
145145
};
146146
const diags = emitResult.diagnostics.map(d => ts.formatDiagnostic(d, diagHost)).join("\r\n");
147147
throw new Error(`Declaration file for protocol.ts is not generated:\r\n${diags}`);

scripts/word2md.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ var sys = (function () {
141141
args[i] = WScript.Arguments.Item(i);
142142
}
143143
return {
144-
args: args,
144+
args,
145145
createObject: (typeName: string) => new ActiveXObject(typeName),
146146
write(s: string): void {
147147
WScript.StdOut.Write(s);

0 commit comments

Comments
 (0)