1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Migrate client to eslint

This commit is contained in:
Chocobozzz 2021-08-17 14:42:53 +02:00
parent adb8809d43
commit 9df52d660f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
215 changed files with 2052 additions and 1196 deletions

View file

@ -51,7 +51,7 @@ export abstract class FormReactive {
}
// clear previous error message (if any)
formErrors[ field ] = ''
formErrors[field] = ''
const control = form.get(field)
if (control.dirty) this.formChanged = true
@ -59,9 +59,9 @@ export abstract class FormReactive {
// Don't care if dirty on force check
const isDirty = control.dirty || forceCheck === true
if (control && isDirty && control.enabled && !control.valid) {
const messages = validationMessages[ field ]
const messages = validationMessages[field]
for (const key of Object.keys(control.errors)) {
formErrors[ field ] += messages[ key ] + ' '
formErrors[field] += messages[key] + ' '
}
}
}