Check for and remove all trailing commas

This commit is contained in:
Preston 2020-08-04 22:18:39 -04:00
parent 30b4392a77
commit 4e92b378da
9 changed files with 30 additions and 30 deletions

View File

@ -5,7 +5,7 @@ module.exports = {
// https://eslint.org/docs/user-guide/configuring#specifying-environments
env: {
browser: true,
node: true,
node: true
},
// https://eslint.org/docs/user-guide/configuring#specifying-parser
@ -15,7 +15,7 @@ module.exports = {
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
sourceType: 'module',
sourceType: 'module'
},
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files
@ -26,7 +26,7 @@ module.exports = {
'prettier',
'eslint:recommended',
'plugin:vue/recommended',
'standard',
'standard'
],
// https://eslint.org/docs/user-guide/configuring#configuring-plugins
@ -34,11 +34,11 @@ module.exports = {
rules: {
'space-before-function-paren': 0,
'comma-dangle': 0,
'comma-dangle': ['error', 'never'],
'vue/no-v-html': 'off',
'no-console': 0,
'no-unused-vars': 1,
'no-undef': 1,
'vue/no-template-key': 1,
},
'vue/no-template-key': 1
}
}

View File

@ -2,6 +2,6 @@
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"trailingComma": false,
"useTabs": false
}

View File

@ -20,7 +20,7 @@ export default Vue.extend({
components: {
TopNav,
SideNav,
FtToast,
FtToast
},
computed: {
isOpen: function () {

View File

@ -26,7 +26,7 @@ export default Vue.extend({
dataList: {
type: Array,
default: () => { return [] }
},
}
},
data: function () {
return {

View File

@ -39,7 +39,7 @@ export default Vue.extend({
youtubeEmbedURL() {
return `https://www.youtube-nocookie.com/embed/${this.id}`
},
}
},
methods: {

View File

@ -5,7 +5,7 @@ export default Vue.extend({
name: 'FtToast',
data: function () {
return {
toasts: [],
toasts: []
}
},
mounted: function () {
@ -38,5 +38,5 @@ export default Vue.extend({
const removed = this.toasts.splice(index, 1)
clearTimeout(removed[0].timeout)
}
},
}
})

View File

@ -10,14 +10,14 @@ export default Vue.extend({
name: 'TopNav',
components: {
FtInput,
FtSearchFilters,
FtSearchFilters
},
data: () => {
return {
component: this,
windowWidth: 0,
showFilters: false,
searchSuggestionsDataList: [],
searchSuggestionsDataList: []
}
},
computed: {
@ -47,7 +47,7 @@ export default Vue.extend({
backendPreference: function () {
return this.$store.getters.getBackendPreference
},
}
},
mounted: function () {
const appWidth = $(window).width()
@ -83,7 +83,7 @@ export default Vue.extend({
this.$store.dispatch('getVideoIdFromUrl', query).then((result) => {
if (result) {
this.$router.push({
path: `/watch/${result}`,
path: `/watch/${result}`
})
} else {
router.push({
@ -92,8 +92,8 @@ export default Vue.extend({
sortBy: this.searchSettings.sortBy,
time: this.searchSettings.time,
type: this.searchSettings.type,
duration: this.searchSettings.duration,
},
duration: this.searchSettings.duration
}
})
}
})
@ -139,8 +139,8 @@ export default Vue.extend({
resource: 'search/suggestions',
id: '',
params: {
q: query,
},
q: query
}
}
this.$store
@ -181,6 +181,6 @@ export default Vue.extend({
toggleSideNav: function () {
this.$store.commit('toggleSideNav')
},
},
}
}
})

View File

@ -63,7 +63,7 @@ export default Vue.extend({
watch: {
videoId () {
this.playlistWatchedVideoList.push(this.videoId)
},
}
},
mounted: function () {
if (this.usingElectron) {

View File

@ -24,7 +24,7 @@ export default Vue.extend({
'watch-video-comments': WatchVideoComments,
'watch-video-live-chat': WatchVideoLiveChat,
'watch-video-playlist': WatchVideoPlaylist,
'watch-video-recommendations': WatchVideoRecommendations,
'watch-video-recommendations': WatchVideoRecommendations
},
data: function() {
return {
@ -57,7 +57,7 @@ export default Vue.extend({
captionSourceList: [],
recommendedVideos: [],
watchingPlaylist: false,
playlistId: '',
playlistId: ''
}
},
computed: {
@ -134,9 +134,9 @@ export default Vue.extend({
type: 'application/dash+xml',
label: 'Dash',
qualityLabel: 'Auto'
},
}
]
},
}
},
watch: {
$route() {
@ -160,7 +160,7 @@ export default Vue.extend({
}
break
}
},
}
},
mounted: function () {
this.videoId = this.$route.params.id
@ -525,6 +525,6 @@ export default Vue.extend({
this.enableDashFormat()
}
}
},
},
}
}
})