Fixed lint errors and add lint fix script

This commit is contained in:
Giuseppe Digilio
2020-12-04 10:32:46 +01:00
parent 587affd064
commit 20b5721e3c
322 changed files with 759 additions and 752 deletions

View File

@@ -241,7 +241,7 @@ function hasValidBody(state: JsonPatchOperationsState, resourceType: any, resour
return (hasValue(state[ resourceType ])
&& hasValue(state[ resourceType ].children)
&& hasValue(state[ resourceType ].children[ resourceId ])
&& isNotEmpty(state[ resourceType ].children[ resourceId ].body))
&& isNotEmpty(state[ resourceType ].children[ resourceId ].body));
}
/**
@@ -281,7 +281,7 @@ function flushOperation(state: JsonPatchOperationsState, action: FlushPatchOpera
.filter((entry) => entry.timeAdded > state[ action.payload.resourceType ].transactionStartTime)
}
});
})
});
}
return Object.assign({}, state, {
[action.payload.resourceType]: Object.assign({}, state[ action.payload.resourceType ], {