From 26cbb095456f611a7964e8e15df5c1a969baaa06 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Thu, 19 Oct 2023 12:07:59 -0400 Subject: [PATCH] prettier --- .../date-range-input/dateRangeInput.tsx | 8 +++++++- .../date-range-picker/dateRangePicker.tsx | 7 ++++++- .../datetime/test/components/datePickerTests.tsx | 9 ++++++++- .../test/components/timezoneSelectTests.tsx | 10 +++++++++- .../nonContiguousDayRangePicker.tsx | 7 ++++++- .../test/components/dateRangeInput3Tests.tsx | 8 +++++++- .../docs-app/src/components/blueprintDocs.tsx | 8 +++++++- .../core-examples/checkboxCardExample.tsx | 10 +++++++++- .../examples/core-examples/menuItemExample.tsx | 13 ++++++++++++- .../core-examples/panelStack2Example.tsx | 12 +++++++++++- .../examples/core-examples/panelStackExample.tsx | 12 +++++++++++- .../src/examples/core-examples/tabsExample.tsx | 14 +++++++++++++- .../docs-theme/src/components/documentation.tsx | 16 ++++++++++++++-- packages/docs-theme/src/tags/typescript.tsx | 9 ++++++++- packages/table/src/cell/cell.tsx | 8 +++++++- packages/table/src/table.tsx | 9 ++++++++- packages/table/src/table2.tsx | 9 ++++++++- 17 files changed, 151 insertions(+), 18 deletions(-) diff --git a/packages/datetime/src/components/date-range-input/dateRangeInput.tsx b/packages/datetime/src/components/date-range-input/dateRangeInput.tsx index 7f9c22b4ff9..0b8dd45ace8 100644 --- a/packages/datetime/src/components/date-range-input/dateRangeInput.tsx +++ b/packages/datetime/src/components/date-range-input/dateRangeInput.tsx @@ -43,7 +43,13 @@ import { Utils, } from "@blueprintjs/core"; -import { Classes, type DateFormatProps, type DatePickerBaseProps, type DateRange, type NonNullDateRange } from "../../common"; +import { + Classes, + type DateFormatProps, + type DatePickerBaseProps, + type DateRange, + type NonNullDateRange, +} from "../../common"; import { getFormattedDateString } from "../../common/dateFormatProps"; import type { DatetimePopoverProps } from "../../common/datetimePopoverProps"; import { isDayInRange, isSameTime } from "../../common/dateUtils"; diff --git a/packages/datetime/src/components/date-range-picker/dateRangePicker.tsx b/packages/datetime/src/components/date-range-picker/dateRangePicker.tsx index e24c2357775..af0fc58bd9e 100644 --- a/packages/datetime/src/components/date-range-picker/dateRangePicker.tsx +++ b/packages/datetime/src/components/date-range-picker/dateRangePicker.tsx @@ -24,7 +24,12 @@ import classNames from "classnames"; import * as React from "react"; -import DayPicker, { type CaptionElementProps, type DayModifiers, type DayPickerProps, type NavbarElementProps } from "react-day-picker"; +import DayPicker, { + type CaptionElementProps, + type DayModifiers, + type DayPickerProps, + type NavbarElementProps, +} from "react-day-picker"; import { AbstractPureComponent, Boundary, DISPLAYNAME_PREFIX, Divider, type Props } from "@blueprintjs/core"; diff --git a/packages/datetime/test/components/datePickerTests.tsx b/packages/datetime/test/components/datePickerTests.tsx index 3c90446ab35..67c8e58c5b6 100644 --- a/packages/datetime/test/components/datePickerTests.tsx +++ b/packages/datetime/test/components/datePickerTests.tsx @@ -31,7 +31,14 @@ import sinon from "sinon"; import { Button, Classes as CoreClasses, HTMLSelect, Menu, MenuItem } from "@blueprintjs/core"; import { assertDatesEqual } from "@blueprintjs/test-commons"; -import { Classes, DatePicker, type DatePickerModifiers, type DatePickerProps, TimePicker, TimePrecision } from "../../src"; +import { + Classes, + DatePicker, + type DatePickerModifiers, + type DatePickerProps, + TimePicker, + TimePrecision, +} from "../../src"; import { DateUtils, Months } from "../../src/common"; import * as Errors from "../../src/common/errors"; import type { DatePickerState } from "../../src/components/date-picker/datePicker"; diff --git a/packages/datetime/test/components/timezoneSelectTests.tsx b/packages/datetime/test/components/timezoneSelectTests.tsx index eed138190dd..c250ab5d518 100644 --- a/packages/datetime/test/components/timezoneSelectTests.tsx +++ b/packages/datetime/test/components/timezoneSelectTests.tsx @@ -19,7 +19,15 @@ import { mount, type ReactWrapper } from "enzyme"; import * as React from "react"; import * as sinon from "sinon"; -import { Button, type ButtonProps, InputGroup, type InputGroupProps, MenuItem, Popover, type PopoverProps } from "@blueprintjs/core"; +import { + Button, + type ButtonProps, + InputGroup, + type InputGroupProps, + MenuItem, + Popover, + type PopoverProps, +} from "@blueprintjs/core"; import { QueryList, Select } from "@blueprintjs/select"; import { TimezoneSelect, type TimezoneSelectProps } from "../../src"; diff --git a/packages/datetime2/src/components/date-range-picker3/nonContiguousDayRangePicker.tsx b/packages/datetime2/src/components/date-range-picker3/nonContiguousDayRangePicker.tsx index 408f34e7318..b65ec6d643d 100644 --- a/packages/datetime2/src/components/date-range-picker3/nonContiguousDayRangePicker.tsx +++ b/packages/datetime2/src/components/date-range-picker3/nonContiguousDayRangePicker.tsx @@ -15,7 +15,12 @@ */ import * as React from "react"; -import { DayPicker, type DayPickerRangeProps, type MonthChangeEventHandler, type SelectRangeEventHandler } from "react-day-picker"; +import { + DayPicker, + type DayPickerRangeProps, + type MonthChangeEventHandler, + type SelectRangeEventHandler, +} from "react-day-picker"; import { DISPLAYNAME_PREFIX } from "@blueprintjs/core"; import { type DateRange, DateRangeSelectionStrategy, DateUtils, MonthAndYear } from "@blueprintjs/datetime"; diff --git a/packages/datetime2/test/components/dateRangeInput3Tests.tsx b/packages/datetime2/test/components/dateRangeInput3Tests.tsx index c32dcc4214c..2316f12cef3 100644 --- a/packages/datetime2/test/components/dateRangeInput3Tests.tsx +++ b/packages/datetime2/test/components/dateRangeInput3Tests.tsx @@ -34,7 +34,13 @@ import { Popover, type PopoverProps, } from "@blueprintjs/core"; -import { type DateFormatProps, type DateRange, Classes as DatetimeClasses, Months, TimePrecision } from "@blueprintjs/datetime"; +import { + type DateFormatProps, + type DateRange, + Classes as DatetimeClasses, + Months, + TimePrecision, +} from "@blueprintjs/datetime"; import { expectPropValidationError } from "@blueprintjs/test-commons"; import { diff --git a/packages/docs-app/src/components/blueprintDocs.tsx b/packages/docs-app/src/components/blueprintDocs.tsx index 15480f647d3..cd276840dd3 100644 --- a/packages/docs-app/src/components/blueprintDocs.tsx +++ b/packages/docs-app/src/components/blueprintDocs.tsx @@ -20,7 +20,13 @@ import * as React from "react"; import { AnchorButton, Classes, HotkeysProvider, type Intent, Tag } from "@blueprintjs/core"; import type { DocsCompleteData } from "@blueprintjs/docs-data"; -import { Banner, Documentation, type DocumentationProps, NavMenuItem, type NavMenuItemProps } from "@blueprintjs/docs-theme"; +import { + Banner, + Documentation, + type DocumentationProps, + NavMenuItem, + type NavMenuItemProps, +} from "@blueprintjs/docs-theme"; import { highlightCodeBlocks } from "../styles/syntaxHighlighting"; import { NavHeader } from "./navHeader"; diff --git a/packages/docs-app/src/examples/core-examples/checkboxCardExample.tsx b/packages/docs-app/src/examples/core-examples/checkboxCardExample.tsx index e9a1db330d0..bd28cc71fcc 100644 --- a/packages/docs-app/src/examples/core-examples/checkboxCardExample.tsx +++ b/packages/docs-app/src/examples/core-examples/checkboxCardExample.tsx @@ -17,7 +17,15 @@ import classNames from "classnames"; import * as React from "react"; -import { type Alignment, CheckboxCard, type CheckboxCardProps, Classes, FormGroup, H5, Switch } from "@blueprintjs/core"; +import { + type Alignment, + CheckboxCard, + type CheckboxCardProps, + Classes, + FormGroup, + H5, + Switch, +} from "@blueprintjs/core"; import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme"; import { PropCodeTooltip } from "../../common/propCodeTooltip"; diff --git a/packages/docs-app/src/examples/core-examples/menuItemExample.tsx b/packages/docs-app/src/examples/core-examples/menuItemExample.tsx index 43f87d05ab4..af92b851770 100644 --- a/packages/docs-app/src/examples/core-examples/menuItemExample.tsx +++ b/packages/docs-app/src/examples/core-examples/menuItemExample.tsx @@ -16,7 +16,18 @@ import * as React from "react"; -import { Classes, Code, H5, HTMLSelect, type Intent, Label, Menu, MenuItem, type MenuItemProps, Switch } from "@blueprintjs/core"; +import { + Classes, + Code, + H5, + HTMLSelect, + type Intent, + Label, + Menu, + MenuItem, + type MenuItemProps, + Switch, +} from "@blueprintjs/core"; import { Example, type ExampleProps, handleBooleanChange, handleValueChange } from "@blueprintjs/docs-theme"; import { PropCodeTooltip } from "../../common/propCodeTooltip"; diff --git a/packages/docs-app/src/examples/core-examples/panelStack2Example.tsx b/packages/docs-app/src/examples/core-examples/panelStack2Example.tsx index 232498fdfe8..b1d40d5d077 100644 --- a/packages/docs-app/src/examples/core-examples/panelStack2Example.tsx +++ b/packages/docs-app/src/examples/core-examples/panelStack2Example.tsx @@ -23,7 +23,17 @@ import * as React from "react"; -import { Button, H5, Intent, NumericInput, type Panel, type PanelProps, PanelStack2, Switch, UL } from "@blueprintjs/core"; +import { + Button, + H5, + Intent, + NumericInput, + type Panel, + type PanelProps, + PanelStack2, + Switch, + UL, +} from "@blueprintjs/core"; import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme"; // eslint-disable-next-line @typescript-eslint/no-empty-interface diff --git a/packages/docs-app/src/examples/core-examples/panelStackExample.tsx b/packages/docs-app/src/examples/core-examples/panelStackExample.tsx index feebed0e94d..fc71073a97c 100644 --- a/packages/docs-app/src/examples/core-examples/panelStackExample.tsx +++ b/packages/docs-app/src/examples/core-examples/panelStackExample.tsx @@ -23,7 +23,17 @@ import * as React from "react"; -import { Button, H5, Intent, type IPanel, type IPanelProps, NumericInput, PanelStack, Switch, UL } from "@blueprintjs/core"; +import { + Button, + H5, + Intent, + type IPanel, + type IPanelProps, + NumericInput, + PanelStack, + Switch, + UL, +} from "@blueprintjs/core"; import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme"; export interface IPanelStackExampleState { diff --git a/packages/docs-app/src/examples/core-examples/tabsExample.tsx b/packages/docs-app/src/examples/core-examples/tabsExample.tsx index 9b640e41e0c..ebafa6c16cd 100644 --- a/packages/docs-app/src/examples/core-examples/tabsExample.tsx +++ b/packages/docs-app/src/examples/core-examples/tabsExample.tsx @@ -16,7 +16,19 @@ import * as React from "react"; -import { Alignment, Classes, Divider, H4, H5, InputGroup, Navbar, Switch, Tab, type TabId, Tabs } from "@blueprintjs/core"; +import { + Alignment, + Classes, + Divider, + H4, + H5, + InputGroup, + Navbar, + Switch, + Tab, + type TabId, + Tabs, +} from "@blueprintjs/core"; import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme"; import { PropCodeTooltip } from "../../common/propCodeTooltip"; diff --git a/packages/docs-theme/src/components/documentation.tsx b/packages/docs-theme/src/components/documentation.tsx index c8b38dd3006..ab1c5fcf023 100644 --- a/packages/docs-theme/src/components/documentation.tsx +++ b/packages/docs-theme/src/components/documentation.tsx @@ -14,14 +14,26 @@ * limitations under the License. */ -import { type IHeadingNode, type IPageData, type IPageNode, isPageNode, type ITsDocBase, linkify } from "@documentalist/client"; +import { + type IHeadingNode, + type IPageData, + type IPageNode, + isPageNode, + type ITsDocBase, + linkify, +} from "@documentalist/client"; import classNames from "classnames"; import * as React from "react"; import { Classes, Drawer, FocusStyleManager, HotkeysTarget2, type Props } from "@blueprintjs/core"; import { Search } from "@blueprintjs/icons"; -import { type DocsData, DocumentationContext, type DocumentationContextApi, hasTypescriptData } from "../common/context"; +import { + type DocsData, + DocumentationContext, + type DocumentationContextApi, + hasTypescriptData, +} from "../common/context"; import { eachLayoutNode } from "../common/documentalistUtils"; import { type TagRendererMap, TypescriptExample } from "../tags"; import { renderBlock } from "./block"; diff --git a/packages/docs-theme/src/tags/typescript.tsx b/packages/docs-theme/src/tags/typescript.tsx index f78cbd86650..b9917696de7 100644 --- a/packages/docs-theme/src/tags/typescript.tsx +++ b/packages/docs-theme/src/tags/typescript.tsx @@ -14,7 +14,14 @@ * limitations under the License. */ -import { isTsClass, isTsEnum, isTsInterface, isTsTypeAlias, type ITag, type ITypescriptPluginData } from "@documentalist/client"; +import { + isTsClass, + isTsEnum, + isTsInterface, + isTsTypeAlias, + type ITag, + type ITypescriptPluginData, +} from "@documentalist/client"; import * as React from "react"; import type { Props } from "@blueprintjs/core"; diff --git a/packages/table/src/cell/cell.tsx b/packages/table/src/cell/cell.tsx index fec121b41e5..ff4d7bfa4d0 100644 --- a/packages/table/src/cell/cell.tsx +++ b/packages/table/src/cell/cell.tsx @@ -16,7 +16,13 @@ import classNames from "classnames"; import * as React from "react"; -import { Classes as CoreClasses, Utils as CoreUtils, DISPLAYNAME_PREFIX, type IntentProps, type Props } from "@blueprintjs/core"; +import { + Classes as CoreClasses, + Utils as CoreUtils, + DISPLAYNAME_PREFIX, + type IntentProps, + type Props, +} from "@blueprintjs/core"; import * as Classes from "../common/classes"; import { LoadableContent } from "../common/loadableContent"; diff --git a/packages/table/src/table.tsx b/packages/table/src/table.tsx index e6a1064ef49..4ef9eacabc0 100644 --- a/packages/table/src/table.tsx +++ b/packages/table/src/table.tsx @@ -54,7 +54,14 @@ import { RegionLayer, type RegionStyler } from "./layers/regions"; import { type Locator, LocatorImpl } from "./locator"; import { QuadrantType } from "./quadrants/tableQuadrant"; import { TableQuadrantStack } from "./quadrants/tableQuadrantStack"; -import { ColumnLoadingOption, type Region, RegionCardinality, Regions, SelectionModes, TableLoadingOption } from "./regions"; +import { + ColumnLoadingOption, + type Region, + RegionCardinality, + Regions, + SelectionModes, + TableLoadingOption, +} from "./regions"; import { resizeRowsByApproximateHeight, type ResizeRowsByApproximateHeightOptions, diff --git a/packages/table/src/table2.tsx b/packages/table/src/table2.tsx index 3f1ec77277c..3a0e4fc4e98 100644 --- a/packages/table/src/table2.tsx +++ b/packages/table/src/table2.tsx @@ -47,7 +47,14 @@ import { RegionLayer, type RegionStyler } from "./layers/regions"; import { type Locator, LocatorImpl } from "./locator"; import { QuadrantType } from "./quadrants/tableQuadrant"; import { TableQuadrantStack } from "./quadrants/tableQuadrantStack"; -import { ColumnLoadingOption, type Region, RegionCardinality, Regions, SelectionModes, TableLoadingOption } from "./regions"; +import { + ColumnLoadingOption, + type Region, + RegionCardinality, + Regions, + SelectionModes, + TableLoadingOption, +} from "./regions"; import { resizeRowsByApproximateHeight, type ResizeRowsByApproximateHeightOptions,