Add linter and minor bug fixes (#107)

This commit is contained in:
Simon Lecoq
2021-02-05 23:45:48 +01:00
committed by GitHub
parent 61e2f6e1a1
commit 882a93dea5
74 changed files with 1544 additions and 712 deletions

View File

@@ -1,5 +1,5 @@
/** Mocked data */
export default function ({faker, url, options, login = faker.internet.userName()}) {
/**Mocked data */
export default function({faker, url, options, login = faker.internet.userName()}) {
//Spotify api
if (/^https:..api.spotify.com.*$/.test(url)) {
//Get recently played tracks
@@ -19,24 +19,24 @@
{
name:artist,
type:"artist",
}
},
],
images:[
{
height:640,
url:faker.image.abstract(),
width:640
width:640,
},
{
height:300,
url:faker.image.abstract(),
width:300
width:300,
},
{
height:64,
url:faker.image.abstract(),
width:64
}
width:64,
},
],
name:track,
release_date:`${faker.date.past()}`.substring(0, 10),
@@ -46,7 +46,7 @@
{
name:artist,
type:"artist",
}
},
],
name:track,
preview_url:faker.internet.url(),
@@ -55,11 +55,11 @@
played_at:`${faker.date.recent()}`,
context:{
type:"album",
}
},
},
],
}
},
})
}
}
}
}