Skip to content

Commit 40fcc6e

Browse files
committed
style(eslint): Fix trailing comma warnings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent c8e067b commit 40fcc6e

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export default {
255255
const action = '<button class="undo">' + this.t('notes', 'Undo Delete') + '</button>'
256256
this.undoNotification = showSuccess(
257257
'<span class="deletedLabel">' + label + '</span> ' + action,
258-
{ isHTML: true, timeout: TOAST_PERMANENT_TIMEOUT, onRemove: this.onUndoNotificationClosed }
258+
{ isHTML: true, timeout: TOAST_PERMANENT_TIMEOUT, onRemove: this.onUndoNotificationClosed },
259259
)
260260
this.undoNotification.toastElement.getElementsByClassName('undo')
261261
.forEach(element => { element.onclick = this.onUndoDelete })

src/NotesService.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const fetchNotes = () => {
7878
return axios
7979
.get(
8080
url('/notes' + (lastModified ? '?pruneBefore=' + lastModified : '')),
81-
{ headers }
81+
{ headers },
8282
)
8383
.then(response => {
8484
store.commit('setSettings', response.data.settings)
@@ -142,7 +142,7 @@ export const refreshNote = (noteId, lastETag) => {
142142
return axios
143143
.get(
144144
url('/notes/' + noteId),
145-
{ headers }
145+
{ headers },
146146
)
147147
.then(response => {
148148
if (note.conflict) {
@@ -224,14 +224,14 @@ function _updateNote(note) {
224224
// everything is fine
225225
// => update note with remote data
226226
_updateLocalNote(
227-
{ ...updated, unsaved: false }
227+
{ ...updated, unsaved: false },
228228
)
229229
} else {
230230
// content has changed locally in the meanwhile
231231
// => merge note, but exclude content
232232
_updateLocalNote(
233233
copyNote(updated, note, ['content']),
234-
copyNote(updated, {})
234+
copyNote(updated, {}),
235235
)
236236
}
237237
})
@@ -246,14 +246,14 @@ function _updateNote(note) {
246246
// content is already up-to-date
247247
// => update note with remote data
248248
_updateLocalNote(
249-
{ ...remote, unsaved: false }
249+
{ ...remote, unsaved: false },
250250
)
251251
} else if (remote.content === reference.content) {
252252
// remote content has not changed
253253
// => use all other attributes and sync again
254254
_updateLocalNote(
255255
copyNote(remote, note, ['content']),
256-
copyNote(remote, {})
256+
copyNote(remote, {}),
257257
)
258258
queueCommand(note.id, 'content')
259259
} else {
@@ -272,15 +272,15 @@ export const conflictSolutionLocal = note => {
272272
note.etag = note.conflict.etag
273273
_updateLocalNote(
274274
copyNote(note.conflict, note, ['content']),
275-
copyNote(note.conflict, {})
275+
copyNote(note.conflict, {}),
276276
)
277277
store.commit('setNoteAttribute', { noteId: note.id, attribute: 'conflict', value: undefined })
278278
queueCommand(note.id, 'content')
279279
}
280280

281281
export const conflictSolutionRemote = note => {
282282
_updateLocalNote(
283-
{ ...note.conflict, unsaved: false }
283+
{ ...note.conflict, unsaved: false },
284284
)
285285
store.commit('setNoteAttribute', { noteId: note.id, attribute: 'conflict', value: undefined })
286286
}

src/components/AppSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default {
162162
true, // modal
163163
FilePickerType.Choose, // type
164164
true, // directories
165-
event.target.value === '' ? '/' : event.target.value // path
165+
event.target.value === '' ? '/' : event.target.value, // path
166166
)
167167
filePicker.pick().then((file) => {
168168
const client = OC.Files.getClient()

src/components/EditorEasyMDE.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default {
163163
// + 1 for some reason... not sure why
164164
doc.replaceRange(newvalue,
165165
{ line: index, ch: line.text.indexOf('[') },
166-
{ line: index, ch: line.text.indexOf(']') + 1 }
166+
{ line: index, ch: line.text.indexOf(']') + 1 },
167167
)
168168
},
169169
@@ -203,7 +203,7 @@ export default {
203203
['image/jpeg', 'image/png'],
204204
true,
205205
OC.dialogs.FILEPICKER_TYPE_CHOOSE,
206-
currentNotePath
206+
currentNotePath,
207207
)
208208
},
209209
@@ -231,7 +231,7 @@ export default {
231231
})
232232
.catch((error) => {
233233
console.error(error)
234-
showError(t('notes', 'The file was not uploaded. Check your server logs.'),)
234+
showError(t('notes', 'The file was not uploaded. Check your server logs.'))
235235
})
236236
}
237237
temporaryInput.click()

src/components/Sidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default {
144144
const wordCount = value.split(/\s+/).filter(
145145
// only count words containing
146146
// at least one alphanumeric character
147-
value => value.search(/[A-Za-z0-9]/) !== -1
147+
value => value.search(/[A-Za-z0-9]/) !== -1,
148148
).length
149149
const charCount = Array.from(value).length
150150
return n('notes', '%n word', '%n words', wordCount)

0 commit comments

Comments
 (0)