chore(lint): switch to eslint

This commit is contained in:
Julian Tölle 2021-05-25 18:12:42 +02:00
parent f56548e432
commit 9b96d0fab4
29 changed files with 1609 additions and 113 deletions

View file

@ -18,13 +18,13 @@ export class Album {
@Column()
name: string;
@ManyToMany((type) => Artist, (artist) => artist.albums)
@ManyToMany(() => Artist, (artist) => artist.albums)
@JoinTable({ name: "album_artists" })
artists?: Artist[];
@OneToMany((type) => Track, (track) => track.album)
@OneToMany(() => Track, (track) => track.album)
tracks?: Track[];
@Column((type) => SpotifyLibraryDetails)
@Column(() => SpotifyLibraryDetails)
spotify: SpotifyLibraryDetails;
}

View file

@ -10,9 +10,9 @@ export class Artist {
@Column()
name: string;
@ManyToMany((type) => Album, (album) => album.artists)
@ManyToMany(() => Album, (album) => album.artists)
albums?: Album[];
@Column((type) => SpotifyLibraryDetails)
@Column(() => SpotifyLibraryDetails)
spotify: SpotifyLibraryDetails;
}

View file

@ -18,13 +18,13 @@ export class Track {
@Column()
name: string;
@ManyToOne((type) => Album, (album) => album.tracks)
@ManyToOne(() => Album, (album) => album.tracks)
album?: Album;
@ManyToMany((type) => Artist)
@ManyToMany(() => Artist)
@JoinTable({ name: "track_artists" })
artists?: Artist[];
@Column((type) => SpotifyLibraryDetails)
@Column(() => SpotifyLibraryDetails)
spotify?: SpotifyLibraryDetails;
}