Skip to content

Commit 3d145d5

Browse files
committed
made tslint happy again
1 parent 66a4ef1 commit 3d145d5

File tree

10 files changed

+17
-15
lines changed

10 files changed

+17
-15
lines changed

src/Documents/Session/DocumentSessionRevisionsBase.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {ForceRevisionStrategy} from "./ForceRevisionStrategy";
2-
import {throwError} from "../../Exceptions";
3-
import {TypeUtil} from "../../Utility/TypeUtil";
4-
import {StringUtil} from "../../Utility/StringUtil";
5-
import {AdvancedSessionExtensionBase} from "./AdvancedSessionExtensionBase";
1+
import { ForceRevisionStrategy } from "./ForceRevisionStrategy";
2+
import { throwError } from "../../Exceptions";
3+
import { TypeUtil } from "../../Utility/TypeUtil";
4+
import { StringUtil } from "../../Utility/StringUtil";
5+
import { AdvancedSessionExtensionBase } from "./AdvancedSessionExtensionBase";
66

77
export class DocumentSessionRevisionsBase extends AdvancedSessionExtensionBase {
88
forceRevisionCreationFor<T extends object>(entity: T)

src/Documents/Session/Tokens/FromToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { QueryToken } from "./QueryToken";
22
import { throwError } from "../../../Exceptions";
3-
import {StringUtil} from "../../../Utility/StringUtil";
3+
import { StringUtil } from "../../../Utility/StringUtil";
44

55
export class FromToken extends QueryToken {
66

src/Utility/StringUtil.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ export class StringUtil {
139139
return;
140140
}
141141

142-
StringUtil.escapeStringInternal(builder, value);
142+
StringUtil._escapeStringInternal(builder, value);
143143
}
144144

145-
private static escapeStringInternal(builder: StringBuilder, value: string) {
145+
private static _escapeStringInternal(builder: StringBuilder, value: string) {
146146
let escaped = JSON.stringify(value);
147147

148148
escaped = escaped.replace(/'/g, "\\\'");

test/Ported/Cluster/ClusterOperationTest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { TypeUtil } from "../../../src/Utility/TypeUtil";
1515

1616
describe("ClusterOperationTest", function () {
1717

18-
let testContext = new ClusterTestContext();
18+
const testContext = new ClusterTestContext();
1919

2020
it("nextIdentityForOperationShouldBroadcast", async () => {
2121
const cluster = await testContext.createRaftCluster(3);
@@ -82,7 +82,7 @@ describe("ClusterOperationTest", function () {
8282
store.initialize();
8383

8484
const re = store.getRequestExecutor(database);
85-
let result = await store.maintenance.forDatabase(database).send(new NextIdentityForOperation("person|"));
85+
const result = await store.maintenance.forDatabase(database).send(new NextIdentityForOperation("person|"));
8686
assertThat(result)
8787
.isEqualTo(1);
8888

test/Ported/Counters/SessionCountersTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe("SessionCountersTest", function () {
7272
await session.saveChanges();
7373
}
7474

75-
let { counters } = (await store.operations
75+
const { counters } = (await store.operations
7676
.send(new GetCountersOperation("users/1-A", ["likes", "downloads"])));
7777
assert.strictEqual(counters.length, 2);
7878

test/Ported/CustomEntityName.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe("CustomEntityName", function () {
1616

1717
const getCharactersToTestWithSpecial = () => {
1818
const basicChars = getChars();
19-
const specialChars = [ 'Ā', 'Ȁ', 'Ѐ', 'Ԁ', '؀', '܀', 'ऀ', 'ਅ', 'ଈ', 'అ', 'ഊ', 'ข', 'ဉ', 'ᄍ', 'ሎ', 'ጇ', 'ᐌ', 'ᔎ', 'ᘀ', 'ᜩ', 'ᢹ', 'ᥤ', 'ᨇ' ];
19+
const specialChars = [ "Ā", "Ȁ", "Ѐ", "Ԁ", "؀", "܀", "ऀ", "ਅ", "ଈ", "అ", "ഊ", "ข", "ဉ", "ᄍ", "ሎ", "ጇ", "ᐌ", "ᔎ", "ᘀ", "ᜩ", "ᢹ", "ᥤ", "ᨇ" ];
2020
return [...basicChars, ...specialChars];
2121
}
2222

test/Ported/Graph/ClientGraphQueriesTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe("ClientGraphQueriesTest", function () {
7878
[ "Fi", "Foozy", "Fah", "Fah", "Foozy" ]
7979
];
8080

81-
for (let names of namesList) {
81+
for (const names of namesList) {
8282
const res = await session.advanced.graphQuery<FooBar>("match (Foos as foo)-[bars as _]->(Bars as bar)", FooBar)
8383
.withQuery("foo", b => b.query<Foo>(Foo).whereIn("name", names))
8484
.withQuery("bar", session.query<Bar>(Bar).whereGreaterThanOrEqual("age", 18))

test/Ported/Issues/RavenDB_12030.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class Fox {
128128
public name: string;
129129
}
130130

131+
// tslint:disable-next-line:class-name
131132
class Fox_Search extends AbstractIndexCreationTask {
132133
public constructor() {
133134
super();

test/Ported/Server/Replication/ReplicationWriteAssuranceTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { assertThat } from "../../../Utils/AssertExtensions";
55

66
describe("ReplicationWriteAssuranceTest", function () {
77

8-
let testContext = new ClusterTestContext();
8+
const testContext = new ClusterTestContext();
99

1010
it("serverSideWriteAssurance", async () => {
1111
const cluster = await testContext.createRaftCluster(3);

test/Utils/TestUtil.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ export class RavenTestContext extends RavenTestDriver implements IDisposable {
224224

225225
private static _killGlobalServerProcess(secured: boolean): void {
226226
let p: ChildProcess;
227+
// tslint:disable-next-line:prefer-const
227228
let store;
228229
if (secured) {
229230
p = this._globalSecuredServerProcess;
@@ -444,7 +445,7 @@ export class ClusterTestContext extends RavenTestDriver implements IDisposable {
444445

445446
const allowedNodeTags = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
446447

447-
let leaderIndex = 0;
448+
const leaderIndex = 0;
448449
const leaderNodeTag = allowedNodeTags[leaderIndex];
449450

450451
for (let i = 0 ; i < numberOfNodes; i++) {

0 commit comments

Comments
 (0)