Skip to content

Commit 8a10859

Browse files
committed
lint commit
1 parent ea0dc10 commit 8a10859

File tree

11 files changed

+90
-90
lines changed

11 files changed

+90
-90
lines changed

packages/database/src/song/dto/FeaturedSongsDto.dto.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { SongPreviewDto } from './SongPreview.dto';
22

33
export class FeaturedSongsDto {
4-
hour: SongPreviewDto[];
5-
day: SongPreviewDto[];
6-
week: SongPreviewDto[];
4+
hour : SongPreviewDto[];
5+
day : SongPreviewDto[];
6+
week : SongPreviewDto[];
77
month: SongPreviewDto[];
8-
year: SongPreviewDto[];
9-
all: SongPreviewDto[];
8+
year : SongPreviewDto[];
9+
all : SongPreviewDto[];
1010

1111
public static create(): FeaturedSongsDto {
1212
return {

packages/database/src/song/dto/SongPreview.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IsNotEmpty, IsString, IsUrl, MaxLength } from 'class-validator';
33
import type { SongWithUser } from '@database/song/entity/song.entity';
44

55
type SongPreviewUploader = {
6-
username: string;
6+
username : string;
77
profileImage: string;
88
};
99

packages/database/src/song/dto/SongView.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { SongDocument } from '@database/song/entity/song.entity';
1313
import type { CategoryType, LicenseType, VisibilityType } from './types';
1414

1515
export type SongViewUploader = {
16-
username: string;
16+
username : string;
1717
profileImage: string;
1818
};
1919

packages/database/src/user/dto/user.dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { User } from '../entity/user.entity';
22

33
export class UserDto {
4-
username: string;
4+
username : string;
55
publicName: string;
6-
email: string;
6+
email : string;
77
static fromEntity(user: User): UserDto {
88
const userDto: UserDto = {
99
username : user.username,

packages/database/src/user/entity/user.entity.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import { Schema as MongooseSchema } from 'mongoose';
44

55
@Schema({})
66
class SocialLinks {
7-
bandcamp?: string;
8-
discord?: string;
9-
facebook?: string;
10-
github?: string;
11-
instagram?: string;
12-
reddit?: string;
13-
snapchat?: string;
7+
bandcamp? : string;
8+
discord? : string;
9+
facebook? : string;
10+
github? : string;
11+
instagram? : string;
12+
reddit? : string;
13+
snapchat? : string;
1414
soundcloud?: string;
15-
spotify?: string;
16-
steam?: string;
17-
telegram?: string;
18-
tiktok?: string;
19-
threads?: string;
20-
twitch?: string;
21-
x?: string;
22-
youtube?: string;
15+
spotify? : string;
16+
steam? : string;
17+
telegram? : string;
18+
tiktok? : string;
19+
threads? : string;
20+
twitch? : string;
21+
x? : string;
22+
youtube? : string;
2323
}
2424

2525
@Schema({

packages/song/src/obfuscate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { Instrument, Layer, Note, Song } from '@encode42/nbs.js';
33
import { getInstrumentNoteCounts, getTempoChangerInstrumentIds } from './util';
44

55
export class SongObfuscator {
6-
private song: Song;
6+
private song : Song;
77
private soundPaths: string[];
8-
private output: Song;
8+
private output : Song;
99

1010
public static obfuscateSong(song: Song, soundPaths: string[]) {
1111
return new SongObfuscator(song, soundPaths).output;

packages/song/src/stats.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class SongStatsGenerator {
1111
return new SongStatsGenerator(song).toObject();
1212
}
1313

14-
private song: Song;
14+
private song : Song;
1515
private stats: SongStatsType;
1616

1717
private constructor(song: Song) {
@@ -85,14 +85,14 @@ export class SongStatsGenerator {
8585
}
8686

8787
private getCounts(tempoChangerInstruments: number[]): {
88-
noteCount: number;
89-
tickCount: number;
90-
layerCount: number;
91-
outOfRangeNoteCount: number;
92-
detunedNoteCount: number;
88+
noteCount : number;
89+
tickCount : number;
90+
layerCount : number;
91+
outOfRangeNoteCount : number;
92+
detunedNoteCount : number;
9393
customInstrumentNoteCount: number;
94-
incompatibleNoteCount: number;
95-
instrumentNoteCounts: number[];
94+
incompatibleNoteCount : number;
95+
instrumentNoteCounts : number[];
9696
} {
9797
let noteCount = 0;
9898
let tickCount = 0;
@@ -303,7 +303,7 @@ export class SongStatsGenerator {
303303
tempoChangerInstruments: number[]
304304
): {
305305
vanillaInstrumentCount: number;
306-
customInstrumentCount: number;
306+
customInstrumentCount : number;
307307
} {
308308
const firstCustomIndex = this.song.instruments.firstCustomIndex;
309309

packages/song/src/types.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@ import { SongStats } from '@nbw/database';
33
import { NoteQuadTree } from './notes';
44

55
export type SongFileType = {
6-
title: string;
7-
description: string;
8-
author: string;
6+
title : string;
7+
description : string;
8+
author : string;
99
originalAuthor: string;
10-
length: number;
11-
height: number;
12-
arrayBuffer: ArrayBuffer;
13-
notes: NoteQuadTree;
14-
instruments: InstrumentArray;
10+
length : number;
11+
height : number;
12+
arrayBuffer : ArrayBuffer;
13+
notes : NoteQuadTree;
14+
instruments : InstrumentArray;
1515
};
1616

1717
export type InstrumentArray = Instrument[];
1818

1919
export type Note = {
20-
tick: number;
21-
layer: number;
22-
key: number;
20+
tick : number;
21+
layer : number;
22+
key : number;
2323
instrument: number;
2424
};
2525

2626
export type Instrument = {
27-
id: number;
28-
name: string;
29-
file: string;
27+
id : number;
28+
name : string;
29+
file : string;
3030
count: number;
3131
};
3232

packages/sounds/src/types.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
export type VersionSummary = {
2-
id: string;
3-
type: 'release' | 'snapshot' | 'old_beta' | 'old_alpha';
4-
url: string;
5-
time: string;
6-
releaseTime: string;
7-
sha1: string;
2+
id : string;
3+
type : 'release' | 'snapshot' | 'old_beta' | 'old_alpha';
4+
url : string;
5+
time : string;
6+
releaseTime : string;
7+
sha1 : string;
88
complianceLevel: number;
99
};
1010

1111
export type VersionManifest = {
1212
latest: {
13-
release: string;
13+
release : string;
1414
snapshot: string;
1515
};
1616
versions: VersionSummary[];
@@ -24,14 +24,14 @@ type OS = {
2424

2525
type Rule = {
2626
action: Action;
27-
os: OS;
27+
os : OS;
2828
};
2929

3030
type Artifact = {
3131
path: string;
3232
sha1: string;
3333
size: number;
34-
url: string;
34+
url : string;
3535
};
3636

3737
type Downloads = {
@@ -40,21 +40,21 @@ type Downloads = {
4040

4141
type Library = {
4242
downloads: Downloads;
43-
name: string;
44-
rules?: Rule[];
43+
name : string;
44+
rules? : Rule[];
4545
};
4646

4747
type File = {
48-
id: string;
48+
id : string;
4949
sha1: string;
5050
size: number;
51-
url: string;
51+
url : string;
5252
};
5353

5454
type Client = {
5555
argument: string;
56-
file: File;
57-
type: string;
56+
file : File;
57+
type : string;
5858
};
5959

6060
type Logging = {
@@ -64,31 +64,31 @@ type Logging = {
6464
export type VersionData = {
6565
arguments: {
6666
game: (string | { rules: Rule[]; value: string })[];
67-
jvm: string[];
67+
jvm : string[];
6868
};
6969
assetIndex: {
70-
id: string;
71-
sha1: string;
72-
size: number;
70+
id : string;
71+
sha1 : string;
72+
size : number;
7373
totalSize: number;
74-
url: string;
74+
url : string;
7575
};
76-
assets: string;
76+
assets : string;
7777
complianceLevel: number;
7878
downloads: {
79-
client: Artifact;
79+
client : Artifact;
8080
client_mappings: Artifact;
81-
server: Artifact;
81+
server : Artifact;
8282
server_mappings: Artifact;
8383
};
84-
id: string;
85-
libraries: Library[];
86-
logging: Logging;
87-
mainClass: string;
84+
id : string;
85+
libraries : Library[];
86+
logging : Logging;
87+
mainClass : string;
8888
minimumLauncherVersion: number;
89-
releaseTime: string;
90-
time: string;
91-
type: string;
89+
releaseTime : string;
90+
time : string;
91+
type : string;
9292
};
9393

9494
export type AssetIndexRecord = Record<string, { hash: string; size: number }>;

packages/sounds/src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
export type RecordKey = string | number | symbol;
44

55
export class TwoWayMap<T extends RecordKey, U extends RecordKey> {
6-
private map: Map<T, U>;
6+
private map : Map<T, U>;
77
private reverseMap: Map<U, T>;
88

99
constructor(map: Map<T, U>) {

0 commit comments

Comments
 (0)