Bump prettier from 1.19.1 to 2.0.1 (#1060)

* Bump prettier from 1.19.1 to 2.0.1

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update formatting

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
This commit is contained in:
dependabot-preview[bot] 2020-03-23 13:05:07 +02:00 committed by GitHub
parent 251fa27c65
commit 722c498abe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 170 additions and 170 deletions

View file

@ -20,7 +20,7 @@ export function exportToCanvas(
scale?: number;
viewBackgroundColor: string;
},
createCanvas: (width: number, height: number) => any = function(
createCanvas: (width: number, height: number) => any = function (
width,
height,
) {

View file

@ -102,7 +102,7 @@ export function isOverScrollBars(scrollBars: ScrollBars, x: number, y: number) {
const [isOverHorizontalScrollBar, isOverVerticalScrollBar] = [
scrollBars.horizontal,
scrollBars.vertical,
].map(scrollBar => {
].map((scrollBar) => {
return (
scrollBar &&
scrollBar.x <= x &&

View file

@ -13,7 +13,7 @@ export function getElementsWithinSelection(
selectionX2,
selectionY2,
] = getElementAbsoluteCoords(selection);
return elements.filter(element => {
return elements.filter((element) => {
const [
elementX1,
elementY1,
@ -36,7 +36,7 @@ export function deleteSelectedElements(
appState: AppState,
) {
return {
elements: elements.map(el => {
elements: elements.map((el) => {
if (appState.selectedElementIds[el.id]) {
return newElementWith(el, { isDeleted: true });
}
@ -66,7 +66,7 @@ export function isSomeElementSelected(
elements: readonly ExcalidrawElement[],
appState: AppState,
): boolean {
return elements.some(element => appState.selectedElementIds[element.id]);
return elements.some((element) => appState.selectedElementIds[element.id]);
}
/**
@ -80,7 +80,7 @@ export function getCommonAttributeOfSelectedElements<T>(
): T | null {
const attributes = Array.from(
new Set(
getSelectedElements(elements, appState).map(element =>
getSelectedElements(elements, appState).map((element) =>
getAttribute(element),
),
),
@ -92,7 +92,7 @@ export function getSelectedElements(
elements: readonly ExcalidrawElement[],
appState: AppState,
): readonly ExcalidrawElement[] {
return elements.filter(element => appState.selectedElementIds[element.id]);
return elements.filter((element) => appState.selectedElementIds[element.id]);
}
export function getTargetElement(