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

@@ -45,7 +45,7 @@ export class CacheableObject extends TypedObject implements HALResource {
_links: {
self: HALLink;
}
};
// isNew: boolean;
// dirtyType: DirtyType;
// hasDirtyAttributes: boolean;
@@ -74,7 +74,7 @@ export class ObjectCacheEntry implements CacheEntry {
* and ObjectCacheEntries as values
*/
export interface ObjectCacheState {
[href: string]: ObjectCacheEntry
[href: string]: ObjectCacheEntry;
}
// Object.create(null) ensures the object has no default js properties (e.g. `__proto__`)
@@ -98,11 +98,11 @@ export function objectCacheReducer(state = initialState, action: ObjectCacheActi
}
case ObjectCacheActionTypes.REMOVE: {
return removeFromObjectCache(state, action as RemoveFromObjectCacheAction)
return removeFromObjectCache(state, action as RemoveFromObjectCacheAction);
}
case ObjectCacheActionTypes.RESET_TIMESTAMPS: {
return resetObjectCacheTimestamps(state, action as ResetObjectCacheTimestampsAction)
return resetObjectCacheTimestamps(state, action as ResetObjectCacheTimestampsAction);
}
case ObjectCacheActionTypes.ADD_PATCH: {