Skip to content

Commit d8796d5

Browse files
committed
@typescript-eslint/no-this-alias
1 parent f96fb53 commit d8796d5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@typescript-eslint/no-namespace": "off",
3636
"@typescript-eslint/no-object-literal-type-assertion": "off",
3737
"@typescript-eslint/no-parameter-properties": "off",
38-
"@typescript-eslint/no-this-alias": "off",
38+
"@typescript-eslint/no-this-alias": "error",
3939
"@typescript-eslint/no-triple-slash-reference": "off",
4040
"@typescript-eslint/no-unnecessary-qualifier": "off",
4141
"@typescript-eslint/no-unnecessary-type-assertion": "off",

src/testRunner/externalCompileRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
2626
// Read in and evaluate the test list
2727
const testList = this.tests && this.tests.length ? this.tests : this.enumerateTestFiles();
2828

29-
// tslint:disable-next-line:no-this-assignment
29+
// eslint-disable-next-line @typescript-eslint/no-this-alias
3030
const cls = this;
3131
describe(`${this.kind()} code samples`, function(this: Mocha.ISuiteCallbackContext) {
3232
this.timeout(600_000); // 10 minutes
@@ -36,7 +36,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
3636
});
3737
}
3838
private runTest(directoryName: string) {
39-
// tslint:disable-next-line:no-this-assignment
39+
// eslint-disable-next-line @typescript-eslint/no-this-alias
4040
const cls = this;
4141
const timeout = 600_000; // 10 minutes
4242
describe(directoryName, function(this: Mocha.ISuiteCallbackContext) {

0 commit comments

Comments
 (0)