lint: always warn on console/debugger
This commit is contained in:
parent
24ed0d9ea9
commit
e12c1f8d33
@ -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',
|
||||
|
@ -118,7 +118,6 @@
|
||||
})
|
||||
},
|
||||
dragstart(id: string, event: any) {
|
||||
console.log('dragstart: ' + id)
|
||||
event.dataTransfer.setData('id', id)
|
||||
},
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -167,9 +167,6 @@ export function setupAudio(store: Store<any>) {
|
||||
store.commit('player/setPaused')
|
||||
store.commit('setError', audio.error)
|
||||
}
|
||||
audio.onwaiting = () => {
|
||||
console.log('audio is waiting for more data.')
|
||||
}
|
||||
|
||||
if (mediaSession) {
|
||||
mediaSession.setActionHandler('play', () => {
|
||||
|
@ -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()
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user