diff --git a/.eslintrc.js b/.eslintrc.js index 81bd05f..c816125 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,8 +18,8 @@ module.exports = { 'vue/no-unused-components': 'off', 'vue/max-attributes-per-line': 'off', 'vue/html-closing-bracket-newline': 'off', - 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-console': 'warn', + 'no-debugger': 'warn', 'no-useless-constructor': 'off', // Crashes eslint 'no-empty-pattern': 'off', 'comma-dangle': 'off', diff --git a/src/library/TrackList.vue b/src/library/TrackList.vue index 65af21a..358841d 100644 --- a/src/library/TrackList.vue +++ b/src/library/TrackList.vue @@ -118,7 +118,6 @@ }) }, dragstart(id: string, event: any) { - console.log('dragstart: ' + id) event.dataTransfer.setData('id', id) }, } diff --git a/src/main.ts b/src/main.ts index 57a0308..8f4236e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -34,6 +34,7 @@ Vue.prototype.$auth = authService Vue.prototype.$api = api Vue.config.errorHandler = (err) => { + // eslint-disable-next-line console.error(err) store.commit('setError', err) } diff --git a/src/player/store.ts b/src/player/store.ts index 797c5bf..32f855b 100644 --- a/src/player/store.ts +++ b/src/player/store.ts @@ -167,9 +167,6 @@ export function setupAudio(store: Store) { store.commit('player/setPaused') store.commit('setError', audio.error) } - audio.onwaiting = () => { - console.log('audio is waiting for more data.') - } if (mediaSession) { mediaSession.setActionHandler('play', () => { diff --git a/src/playlist/PlaylistNav.vue b/src/playlist/PlaylistNav.vue index 5cfeb34..639e205 100644 --- a/src/playlist/PlaylistNav.vue +++ b/src/playlist/PlaylistNav.vue @@ -60,13 +60,11 @@ return this.$store.dispatch('createPlaylist', name) }, onDrop(playlistId: string, event: any) { - console.log('onDrop') event.preventDefault() const trackId = event.dataTransfer.getData('id') return this.$store.dispatch('addTrackToPlaylist', { playlistId, trackId }) }, onDragover(event: any) { - console.log('onDragover') event.preventDefault() }, }