Skip to content

Commit 7491947

Browse files
committed
Fix linting errors
1 parent 11ca8c5 commit 7491947

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"commands": [
44
{
55
"match": ".*",
6-
"cmd": "npx prettier-eslint ${file} --write"
6+
"cmd": "pnpm exec prettier-eslint ${file} --write"
77
}
88
]
99
}

src/fluent/FluentArray.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('FluentArray', () => {
6767
public sortAlphabetically(): this {
6868
return this.create(this.value.slice(0).sort((a, b) => (toString(a) > toString(b) ? 1 : -1)));
6969
}
70-
70+
7171
}
7272
const superFluentArray = SuperFluentArray.create(['foo', 'bar']);
7373

src/fluent/tap.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('tap helper', () => {
3737
public getTheMeaningOfLife(): number {
3838
return this.theMeaningOfLife;
3939
}
40-
40+
4141
}
4242

4343
const computer = new Computer();

src/helpers/array_helpers.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ describe('Array helpers', () => {
206206
public isAdmin(): boolean {
207207
return this.role === 'admin';
208208
}
209-
209+
210210
}
211211

212212
const admin = new User('admin');
@@ -225,7 +225,7 @@ describe('Array helpers', () => {
225225
public isAdmin(): boolean {
226226
return this.role === 'admin';
227227
}
228-
228+
229229
}
230230

231231
const admin = new User('admin');

src/helpers/hash_helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ function md51(s: any) {
122122
}
123123
s = s.substring(i - 64);
124124
const tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
125-
for (i = 0; i < s.length; i++) tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);
126-
tail[i >> 2] |= 0x80 << (i % 4 << 3);
125+
for (i = 0; i < s.length; i++) tail[i >> 2] |= s.charCodeAt(i) << ((i % 4) << 3);
126+
tail[i >> 2] |= 0x80 << ((i % 4) << 3);
127127
if (i > 55) {
128128
md5cycle(state, tail);
129129
for (i = 0; i < 16; i++) tail[i] = 0;

src/helpers/mixin_helpers.stubs.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ export class MixinB<Secret, BaseSecret> implements Use<BaseSecret> {
6262
export const TargetMixedBase = mixed(BaseClass, [MixinAA, MixinB]) as typeof BaseClass;
6363

6464
export default interface TargetClass<BaseSecret, MixinSecret>
65-
extends BaseClass<BaseSecret>,
66-
MixinAA<BaseSecret>,
67-
MixinB<MixinSecret, BaseSecret> {}
65+
extends BaseClass<BaseSecret>, MixinAA<BaseSecret>, MixinB<MixinSecret, BaseSecret> {}
6866
export default class TargetClass<BaseSecret, MixinSecret> extends TargetMixedBase<BaseSecret> {
6967

7068
public specificId: number = 32;

0 commit comments

Comments
 (0)