Prettier upgrade and e2e type checks (#1522)

* upgrade prettier

* noImplicitAny rule

* fix type

* update tsconfig

* upgrade to 150 print width
This commit is contained in:
Denys Vuika
2020-07-14 10:03:23 +01:00
committed by GitHub
parent 32793ea7b0
commit ddc6f36ab4
339 changed files with 5170 additions and 8763 deletions

View File

@@ -30,21 +30,12 @@ export function isLocked(node: { entry: Node }): boolean {
return (
(entry && entry.isLocked) ||
(entry.properties &&
(entry.properties['cm:lockType'] === 'READ_ONLY_LOCK' ||
entry.properties['cm:lockType'] === 'WRITE_LOCK'))
(entry.properties && (entry.properties['cm:lockType'] === 'READ_ONLY_LOCK' || entry.properties['cm:lockType'] === 'WRITE_LOCK'))
);
}
export function isLibrary(node: { entry: Node | any }): boolean {
const { entry } = node;
return (
(entry.guid &&
entry.id &&
entry.preset &&
entry.title &&
entry.visibility) ||
entry.nodeType === 'st:site'
);
return (entry.guid && entry.id && entry.preset && entry.title && entry.visibility) || entry.nodeType === 'st:site';
}