Upgrade prettier before it will be removed forever

This commit is contained in:
SleepWalker
2020-05-20 19:35:52 +03:00
parent 39576c0480
commit 2d903f96fc
108 changed files with 422 additions and 547 deletions

View File

@@ -130,7 +130,7 @@ export default class FormModel {
const oldErrors = this.errors;
this.errors = errors;
Object.keys(this.fields).forEach(fieldId => {
Object.keys(this.fields).forEach((fieldId) => {
if (this.renderErrors) {
if (oldErrors[fieldId] || errors[fieldId]) {
this.fields[fieldId].setError(errors[fieldId] || null);
@@ -192,7 +192,7 @@ export default class FormModel {
* @param {Function} fn
*/
removeLoadingListener(fn: LoadingListener): void {
this.handlers = this.handlers.filter(handler => handler !== fn);
this.handlers = this.handlers.filter((handler) => handler !== fn);
}
/**
@@ -212,6 +212,6 @@ export default class FormModel {
}
private notifyHandlers(): void {
this.handlers.forEach(fn => fn(this._isLoading));
this.handlers.forEach((fn) => fn(this._isLoading));
}
}