Skip to content

Commit f6ccfb3

Browse files
committed
@typescript-eslint/semi
1 parent 55b8a38 commit f6ccfb3

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@typescript-eslint/prefer-interface": "off",
4747
"@typescript-eslint/prefer-namespace-keyword": "off",
4848
"semi": "off",
49-
"@typescript-eslint/semi": "off",
49+
"@typescript-eslint/semi": "error",
5050
"@typescript-eslint/type-annotation-spacing": "off",
5151
"@typescript-eslint/unified-signatures": "off",
5252

scripts/authors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function getKnownAuthorMaps() {
7171
}
7272

7373
function deduplicate<T>(array: T[]): T[] {
74-
let result: T[] = []
74+
let result: T[] = [];
7575
if (array) {
7676
for (const item of array) {
7777
if (result.indexOf(item) < 0) {

scripts/buildProtocol.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class DeclarationsWalker {
2828
: "";
2929
if (walker.removedTypes) {
3030
text += "\ndeclare namespace ts {\n";
31-
text += " // these types are empty stubs for types from services and should not be used directly\n"
31+
text += " // these types are empty stubs for types from services and should not be used directly\n";
3232
for (const type of walker.removedTypes) {
3333
text += ` export type ${type.symbol!.name} = never;\n`;
3434
}
35-
text += "}"
35+
text += "}";
3636
}
3737
return text;
3838
}
@@ -142,7 +142,7 @@ function writeProtocolFile(outputFile: string, protocolTs: string, typeScriptSer
142142
getCanonicalFileName: function (f) { return f; },
143143
getCurrentDirectory: function() { return '.'; },
144144
getNewLine: function() { return "\r\n"; }
145-
}
145+
};
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}`);
148148
}
@@ -161,7 +161,7 @@ function writeProtocolFile(outputFile: string, protocolTs: string, typeScriptSer
161161
return ts.createSourceFile(fileName, protocolDts, options.target);
162162
}
163163
return originalGetSourceFile.apply(host, [fileName]);
164-
}
164+
};
165165
const rootFiles = includeTypeScriptServices ? [protocolFileName, typeScriptServicesDts] : [protocolFileName];
166166
return ts.createProgram(rootFiles, options, host);
167167
}

scripts/configurePrerelease.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function main(): void {
4848
// Finally write the changes to disk.
4949
// Modify the package.json structure
5050
packageJsonValue.version = `${majorMinor}.${prereleasePatch}`;
51-
writeFileSync(packageJsonFilePath, JSON.stringify(packageJsonValue, /*replacer:*/ undefined, /*space:*/ 4))
51+
writeFileSync(packageJsonFilePath, JSON.stringify(packageJsonValue, /*replacer:*/ undefined, /*space:*/ 4));
5252
writeFileSync(tsFilePath, modifiedTsFileContents);
5353
}
5454

scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ declare var process: {
1111
argv: string[];
1212
env: Map<string>;
1313
exit(exitCode?: number): void;
14-
}
14+
};
1515

1616
main();
1717
function main() {
1818
const [, progName, tscRoot, definitelyTypedRoot] = process.argv;
1919
if (process.argv.length !== 4) {
2020
if (process.argv.length < 2) {
21-
throw "Expected at least 2 argv elements."
21+
throw "Expected at least 2 argv elements.";
2222
}
23-
console.log("Usage:")
23+
console.log("Usage:");
2424
console.log(` node ${path.relative(__dirname, progName)} [TypeScript Repo Root] [DefinitelyTyped Repo Root]`);
2525
return;
2626
}
@@ -52,7 +52,7 @@ function importDefinitelyTypedTest(tscPath: string, rwcTestPath: string, testCas
5252
cmd += " @" + responseFile;
5353
}
5454

55-
let testDirectoryName = testCaseName + "_" + Math.floor((Math.random() * 10000) + 1);
55+
let testDirectoryName = testCaseName + "_" + Math.floor((Math.random() * 10000) + 1);
5656
let testDirectoryPath = path.join(process.env["temp"], testDirectoryName);
5757
if (fs.existsSync(testDirectoryPath)) {
5858
throw new Error("Could not create test directory");
@@ -156,6 +156,6 @@ function importDefinitelyTypedTests(tscPath: string, rwcTestPath: string, defini
156156
}
157157
}
158158
});
159-
})
159+
});
160160
});
161-
}
161+
}

scripts/open-cherry-pick-pr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function main() {
3434
logText = `Cherry-pick PR #${process.env.SOURCE_ISSUE} into ${process.env.TARGET_BRANCH}
3535
3636
Component commits:
37-
${logText.trim()}`
37+
${logText.trim()}`;
3838
const logpath = path.join(__dirname, "../", "logmessage.txt");
3939
runSequence([
4040
["git", ["checkout", "-b", "temp-branch"]],
@@ -51,7 +51,7 @@ ${logText.trim()}`
5151
runSequence([
5252
["git", ["checkout", process.env.TARGET_BRANCH]], // checkout the target branch
5353
["git", ["checkout", "-b", branchName]], // create a new branch
54-
["git", ["cherry-pick", squashSha.trim()]], //
54+
["git", ["cherry-pick", squashSha.trim()]], //
5555
["git", ["remote", "add", "fork", remoteUrl]], // Add the remote fork
5656
["git", ["push", "--set-upstream", "fork", branchName, "-f"]] // push the branch
5757
]);
@@ -102,4 +102,4 @@ main().catch(async e => {
102102
body: `Hey @${process.env.REQUESTING_USER}, I couldn't open a PR with the cherry-pick. ([You can check the log here](https://typescript.visualstudio.com/TypeScript/_build/index?buildId=${process.env.BUILD_BUILDID}&_a=summary)). You may need to squash and pick this PR into ${process.env.TARGET_BRANCH} manually.`
103103
});
104104
}
105-
});
105+
});

scripts/processDiagnosticMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function main(): void {
2020
function writeFile(fileName: string, contents: string) {
2121
fs.writeFile(path.join(path.dirname(inputFilePath), fileName), contents, { encoding: "utf-8" }, err => {
2222
if (err) throw err;
23-
})
23+
});
2424
}
2525

2626
const inputFilePath = process.argv[2].replace(/\\/g, "/");

src/typingsInstaller/nodeTypingsInstaller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace ts.server.typingsInstaller {
1515

1616
isEnabled = () => {
1717
return typeof this.logFile === "string";
18-
}
18+
};
1919
writeLine = (text: string) => {
2020
if (typeof this.logFile !== "string") return;
2121

@@ -25,7 +25,7 @@ namespace ts.server.typingsInstaller {
2525
catch (e) {
2626
this.logFile = undefined;
2727
}
28-
}
28+
};
2929
}
3030

3131
/** Used if `--npmLocation` is not passed. */

0 commit comments

Comments
 (0)