diff --git a/.dumi/theme/common/Link.tsx b/.dumi/theme/common/Link.tsx index 44ae98b722..a628cf7592 100644 --- a/.dumi/theme/common/Link.tsx +++ b/.dumi/theme/common/Link.tsx @@ -1,6 +1,6 @@ import type { MouseEvent, MouseEventHandler } from 'react'; -import React, { useMemo, forwardRef } from 'react'; -import { Link as DumiLink, useLocation, useAppData, useNavigate } from 'dumi'; +import React, { forwardRef, useMemo } from 'react'; +import { Link as DumiLink, useAppData, useLocation, useNavigate } from 'dumi'; export interface LinkProps { to: string | { pathname?: string; search?: string; hash?: string }; diff --git a/components/_util/__tests__/wave-util.test.tsx b/components/_util/__tests__/wave-util.test.tsx index b5004dca62..7cb546d0fe 100644 --- a/components/_util/__tests__/wave-util.test.tsx +++ b/components/_util/__tests__/wave-util.test.tsx @@ -1,4 +1,4 @@ -import { isValidWaveColor, getTargetWaveColor } from '../wave/util'; +import { getTargetWaveColor, isValidWaveColor } from '../wave/util'; describe('wave util', () => { describe('isValidWaveColor', () => { diff --git a/components/anchor/demo/style-class.tsx b/components/anchor/demo/style-class.tsx index 2a25cc49f2..6111f8513f 100644 --- a/components/anchor/demo/style-class.tsx +++ b/components/anchor/demo/style-class.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Anchor, Row, Col } from 'antd'; +import { Anchor, Col, Row } from 'antd'; import type { AnchorProps } from 'antd'; const classNamesObject: AnchorProps['classNames'] = { diff --git a/components/button/demo/custom-disabled-bg.tsx b/components/button/demo/custom-disabled-bg.tsx index 3bbd5e79da..39de1e1e8a 100644 --- a/components/button/demo/custom-disabled-bg.tsx +++ b/components/button/demo/custom-disabled-bg.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Button, Flex, ConfigProvider } from 'antd'; +import { Button, ConfigProvider, Flex } from 'antd'; const App: React.FC = () => ( diff --git a/components/collapse/index.tsx b/components/collapse/index.tsx index eaacdb496e..2bff020c2f 100644 --- a/components/collapse/index.tsx +++ b/components/collapse/index.tsx @@ -1,10 +1,10 @@ import Collapse from './Collapse'; export type { - CollapseProps, CollapseClassNamesType, - CollapseStylesType, + CollapseProps, CollapseSemanticName, + CollapseStylesType, } from './Collapse'; export type { CollapsePanelProps } from './CollapsePanel'; diff --git a/components/config-provider/index.tsx b/components/config-provider/index.tsx index d07300d3dd..9b7359e2b4 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -115,11 +115,11 @@ export const warnContext: (componentName: string) => void = export { ConfigConsumer, - ConfigContext, - defaultPrefixCls, - defaultIconPrefixCls, type ConfigConsumerProps, + ConfigContext, type CSPConfig, + defaultIconPrefixCls, + defaultPrefixCls, type DirectionType, type RenderEmptyHandler, type ThemeConfig, diff --git a/components/date-picker/style/index.ts b/components/date-picker/style/index.ts index 89ed79060b..3edfde1909 100644 --- a/components/date-picker/style/index.ts +++ b/components/date-picker/style/index.ts @@ -22,7 +22,7 @@ import { initPanelComponentToken, initPickerPanelToken, prepareComponentToken } import genVariantsStyle from './variants'; export type { ComponentToken, PanelComponentToken, PickerPanelToken }; -export { initPickerPanelToken, initPanelComponentToken, genPanelStyle }; +export { genPanelStyle, initPanelComponentToken, initPickerPanelToken }; const genPickerPadding = (paddingBlock: number, paddingInline: number): CSSObject => { return { diff --git a/components/drawer/demo/style-class.tsx b/components/drawer/demo/style-class.tsx index 425aaff57e..757be915bb 100644 --- a/components/drawer/demo/style-class.tsx +++ b/components/drawer/demo/style-class.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Button, Flex, Drawer } from 'antd'; +import { Button, Drawer, Flex } from 'antd'; import type { DrawerProps } from 'antd'; import { createStyles } from 'antd-style'; diff --git a/components/form/Form.tsx b/components/form/Form.tsx index e5afc78814..07219ad5ae 100644 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -274,6 +274,6 @@ if (process.env.NODE_ENV !== 'production') { Form.displayName = 'Form'; } -export { List, useForm, useWatch, type FormInstance }; +export { type FormInstance, List, useForm, useWatch }; export default Form; diff --git a/components/form/context.tsx b/components/form/context.tsx index a3b2282732..0cf469d446 100644 --- a/components/form/context.tsx +++ b/components/form/context.tsx @@ -7,7 +7,7 @@ import { omit } from '@rc-component/util'; import type { Variant } from '../config-provider'; import type { ColProps } from '../grid/col'; -import type { FormInstance, RequiredMark, FormSemanticName, FormLayout } from './Form'; +import type { FormInstance, FormLayout, FormSemanticName, RequiredMark } from './Form'; import type { FeedbackIcons, ValidateStatus } from './FormItem'; import type { FormLabelAlign, NamePath } from './interface'; diff --git a/components/form/demo/custom-feedback-icons.tsx b/components/form/demo/custom-feedback-icons.tsx index 03ef63e2a3..a27d961b71 100644 --- a/components/form/demo/custom-feedback-icons.tsx +++ b/components/form/demo/custom-feedback-icons.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { AlertFilled, CloseSquareFilled } from '@ant-design/icons'; -import { Button, Form, Input, Tooltip, Mentions } from 'antd'; +import { Button, Form, Input, Mentions, Tooltip } from 'antd'; import { createStyles, css } from 'antd-style'; import uniqueId from 'lodash/uniqueId'; diff --git a/components/form/demo/login.tsx b/components/form/demo/login.tsx index d2247965f4..1febee1117 100644 --- a/components/form/demo/login.tsx +++ b/components/form/demo/login.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { LockOutlined, UserOutlined } from '@ant-design/icons'; -import { Button, Checkbox, Form, Input, Flex } from 'antd'; +import { Button, Checkbox, Flex, Form, Input } from 'antd'; const App: React.FC = () => { const onFinish = (values: any) => { diff --git a/components/form/hooks/useVariants.ts b/components/form/hooks/useVariants.ts index 93953f80b7..4faf68ad2a 100644 --- a/components/form/hooks/useVariants.ts +++ b/components/form/hooks/useVariants.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import { VariantContext } from '../context'; -import type { Variant, ConfigProviderProps } from '../../config-provider'; +import type { ConfigProviderProps, Variant } from '../../config-provider'; import { ConfigContext, Variants } from '../../config-provider'; type VariantComponents = keyof Pick< diff --git a/components/index.ts b/components/index.ts index b2daac7568..38562f384e 100644 --- a/components/index.ts +++ b/components/index.ts @@ -1,5 +1,5 @@ export type { Breakpoint } from './_util/responsiveObserver'; -export type { GetProps, GetRef, GetProp } from './_util/type'; +export type { GetProp, GetProps, GetRef } from './_util/type'; export { default as Affix } from './affix'; export type { AffixProps, AffixRef } from './affix'; export { default as Alert } from './alert'; @@ -26,8 +26,8 @@ export type { CardMetaProps } from './card/Meta'; export { default as Carousel } from './carousel'; export type { CarouselProps } from './carousel'; export { default as Cascader } from './cascader'; -export type { CascaderProps, CascaderAutoProps } from './cascader'; -export type { CascaderPanelProps, CascaderPanelAutoProps } from './cascader/Panel'; +export type { CascaderAutoProps, CascaderProps } from './cascader'; +export type { CascaderPanelAutoProps, CascaderPanelProps } from './cascader/Panel'; export { default as Checkbox } from './checkbox'; export type { CheckboxChangeEvent, @@ -134,7 +134,7 @@ export type { SpinProps } from './spin'; export { default as Splitter } from './splitter'; export type { SplitterProps } from './splitter'; export { default as Statistic } from './statistic'; -export type { StatisticTimerProps, CountdownProps, StatisticProps } from './statistic'; +export type { CountdownProps, StatisticProps, StatisticTimerProps } from './statistic'; export { default as Steps } from './steps'; export type { StepsProps } from './steps'; export { default as Switch } from './switch'; @@ -143,8 +143,8 @@ export { default as Table } from './table'; export type { ColumnGroupType as TableColumnGroupType, ColumnProps as TableColumnProps, - ColumnType as TableColumnType, ColumnsType as TableColumnsType, + ColumnType as TableColumnType, TablePaginationConfig, TableProps, } from './table'; @@ -175,7 +175,7 @@ export type { TreeSelectProps } from './tree-select'; export { default as Typography } from './typography'; export type { TypographyProps } from './typography'; export { default as Upload } from './upload'; -export type { UploadFile, UploadProps, DraggerProps } from './upload'; +export type { DraggerProps, UploadFile, UploadProps } from './upload'; export { default as version } from './version'; export { default as Watermark } from './watermark'; export type { WatermarkProps } from './watermark'; diff --git a/components/input/demo/presuffix.tsx b/components/input/demo/presuffix.tsx index 40f3183b1a..70e8b06f71 100644 --- a/components/input/demo/presuffix.tsx +++ b/components/input/demo/presuffix.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { InfoCircleOutlined, UserOutlined, LockOutlined } from '@ant-design/icons'; +import { InfoCircleOutlined, LockOutlined, UserOutlined } from '@ant-design/icons'; import { Input, Tooltip } from 'antd'; const App: React.FC = () => ( diff --git a/components/menu/demo/style-class.tsx b/components/menu/demo/style-class.tsx index 75efa51a44..28c585c7b7 100644 --- a/components/menu/demo/style-class.tsx +++ b/components/menu/demo/style-class.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Menu, Flex } from 'antd'; +import { Flex, Menu } from 'antd'; import type { MenuProps } from 'antd'; const items: Required['items'] = [ diff --git a/components/notification/demo/component-token.tsx b/components/notification/demo/component-token.tsx index c70f749dce..c5b11ade18 100644 --- a/components/notification/demo/component-token.tsx +++ b/components/notification/demo/component-token.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Button, notification, Space, ConfigProvider } from 'antd'; +import { Button, ConfigProvider, notification, Space } from 'antd'; type NotificationType = 'success' | 'info' | 'warning' | 'error'; diff --git a/components/notification/demo/progress-color.tsx b/components/notification/demo/progress-color.tsx index 08c5df3817..02c12d7b9e 100644 --- a/components/notification/demo/progress-color.tsx +++ b/components/notification/demo/progress-color.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Button, notification, ConfigProvider } from 'antd'; +import { Button, ConfigProvider, notification } from 'antd'; import { createStyles } from 'antd-style'; const COLOR_BG = 'linear-gradient(135deg,#6253e1, #04befe)'; diff --git a/components/notification/demo/style-class.tsx b/components/notification/demo/style-class.tsx index e988be5a55..d4c9769677 100644 --- a/components/notification/demo/style-class.tsx +++ b/components/notification/demo/style-class.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Button, Space, notification } from 'antd'; +import { Button, notification, Space } from 'antd'; import type { NotificationArgsProps } from 'antd'; import { createStyles } from 'antd-style'; diff --git a/components/qr-code/interface.ts b/components/qr-code/interface.ts index 897a8638b4..37922e0605 100644 --- a/components/qr-code/interface.ts +++ b/components/qr-code/interface.ts @@ -6,7 +6,7 @@ import type { Locale } from '../locale'; type ImageSettings = QRProps['imageSettings']; -export type { QRProps, ImageSettings }; +export type { ImageSettings, QRProps }; export type QRPropsCanvas = QRProps & React.CanvasHTMLAttributes; diff --git a/components/select/demo/select-users.tsx b/components/select/demo/select-users.tsx index 66069ce16d..ddcf2f54f7 100644 --- a/components/select/demo/select-users.tsx +++ b/components/select/demo/select-users.tsx @@ -1,5 +1,5 @@ import React, { useMemo, useRef, useState } from 'react'; -import { Select, Spin, Avatar } from 'antd'; +import { Avatar, Select, Spin } from 'antd'; import type { SelectProps } from 'antd'; import debounce from 'lodash/debounce'; diff --git a/components/skeleton/demo/element.tsx b/components/skeleton/demo/element.tsx index 478a406b86..9ed163597b 100644 --- a/components/skeleton/demo/element.tsx +++ b/components/skeleton/demo/element.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { DotChartOutlined } from '@ant-design/icons'; import type { RadioChangeEvent } from 'antd'; -import { Flex, Divider, Form, Radio, Skeleton, Space, Switch } from 'antd'; +import { Divider, Flex, Form, Radio, Skeleton, Space, Switch } from 'antd'; type SizeType = 'default' | 'small' | 'large'; type ButtonShapeType = 'circle' | 'square' | 'round' | 'default'; diff --git a/components/statistic/index.tsx b/components/statistic/index.tsx index 9423e81832..e96dbbe67b 100644 --- a/components/statistic/index.tsx +++ b/components/statistic/index.tsx @@ -5,7 +5,7 @@ import Statistic from './Statistic'; import type { StatisticTimerProps } from './Timer'; import Timer from './Timer'; -export type { CountdownProps, StatisticTimerProps, StatisticProps }; +export type { CountdownProps, StatisticProps, StatisticTimerProps }; type CompoundedComponent = { /** diff --git a/components/style/motion/index.ts b/components/style/motion/index.ts index 837881f1de..cd0725abdc 100644 --- a/components/style/motion/index.ts +++ b/components/style/motion/index.ts @@ -39,39 +39,39 @@ import { } from './zoom'; export { + fadeIn, + fadeOut, + genCollapseMotion, + initFadeMotion, + initMoveMotion, initSlideMotion, - slideUpIn, - slideUpOut, + initZoomMotion, + moveDownIn, + moveDownOut, + moveLeftIn, + moveLeftOut, + moveRightIn, + moveRightOut, + moveUpIn, + moveUpOut, slideDownIn, slideDownOut, slideLeftIn, slideLeftOut, slideRightIn, slideRightOut, - zoomOut, - zoomIn, + slideUpIn, + slideUpOut, zoomBigIn, - zoomLeftOut, zoomBigOut, - zoomLeftIn, - zoomRightIn, - zoomUpIn, - zoomRightOut, - zoomUpOut, zoomDownIn, zoomDownOut, - initZoomMotion, - fadeIn, - fadeOut, - initFadeMotion, - moveRightOut, - moveRightIn, - moveLeftOut, - moveLeftIn, - moveDownOut, - moveDownIn, - moveUpIn, - moveUpOut, - initMoveMotion, - genCollapseMotion, + zoomIn, + zoomLeftIn, + zoomLeftOut, + zoomOut, + zoomRightIn, + zoomRightOut, + zoomUpIn, + zoomUpOut, }; diff --git a/components/switch/__tests__/style-class.test.tsx b/components/switch/__tests__/style-class.test.tsx index e4cf891eef..7439150b9d 100644 --- a/components/switch/__tests__/style-class.test.tsx +++ b/components/switch/__tests__/style-class.test.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { render } from '@testing-library/react'; -import { Switch, Space, Flex } from 'antd'; +import { Flex, Space, Switch } from 'antd'; import type { SwitchProps } from 'antd'; import { createStyles } from 'antd-style'; diff --git a/components/table/__tests__/Sorter.value.test.tsx b/components/table/__tests__/Sorter.value.test.tsx index 4fef161563..ea88ac3e42 100644 --- a/components/table/__tests__/Sorter.value.test.tsx +++ b/components/table/__tests__/Sorter.value.test.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import Table from '..'; -import { render, fireEvent } from '../../../tests/utils'; +import { fireEvent, render } from '../../../tests/utils'; describe('Sorter.value.test.tsx', () => { const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {}); diff --git a/components/table/index.tsx b/components/table/index.tsx index f50a016e04..621f3a3443 100644 --- a/components/table/index.tsx +++ b/components/table/index.tsx @@ -2,7 +2,7 @@ import type { TablePaginationConfig, TableProps } from './InternalTable'; import Table from './Table'; export type { ColumnProps } from './Column'; -export type { ColumnGroupType, ColumnType, ColumnsType } from './interface'; +export type { ColumnGroupType, ColumnsType, ColumnType } from './interface'; export type { Reference as TableRef } from '@rc-component/table'; export type { TablePaginationConfig, TableProps }; diff --git a/components/tag/demo/disabled.tsx b/components/tag/demo/disabled.tsx index 3b6058e23f..fc70cacec1 100644 --- a/components/tag/demo/disabled.tsx +++ b/components/tag/demo/disabled.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Flex, Tag, message } from 'antd'; +import { Flex, message, Tag } from 'antd'; import { CheckCircleOutlined, CloseCircleOutlined } from '@ant-design/icons'; const { CheckableTag } = Tag; diff --git a/components/theme/interface/cssinjs-utils.ts b/components/theme/interface/cssinjs-utils.ts index eaa23284eb..f71a50694f 100644 --- a/components/theme/interface/cssinjs-utils.ts +++ b/components/theme/interface/cssinjs-utils.ts @@ -1,9 +1,9 @@ import type { + FullToken as FullTokenTypeUtil, + GenStyleFn as GenStyleFnTypeUtil, + GetDefaultToken as GetDefaultTokenTypeUtil, GlobalToken as GlobalTokenTypeUtil, OverrideTokenMap as OverrideTokenTypeUtil, - FullToken as FullTokenTypeUtil, - GetDefaultToken as GetDefaultTokenTypeUtil, - GenStyleFn as GenStyleFnTypeUtil, TokenMapKey, } from '@ant-design/cssinjs-utils'; diff --git a/components/theme/interface/index.ts b/components/theme/interface/index.ts index f2cde51caa..cae61350aa 100644 --- a/components/theme/interface/index.ts +++ b/components/theme/interface/index.ts @@ -11,12 +11,12 @@ export type { AliasToken } from './alias'; export type { ComponentTokenMap } from './components'; export type { - GlobalToken, - OverrideToken, FullToken, - OverrideComponent, - GetDefaultToken, GenStyleFn, + GetDefaultToken, + GlobalToken, + OverrideComponent, + OverrideToken, } from './cssinjs-utils'; export type { @@ -31,8 +31,8 @@ export type { } from './maps'; export { PresetColors } from './presetColors'; export type { - LegacyColorPalettes, ColorPalettes, + LegacyColorPalettes, PresetColorKey, PresetColorType, } from './presetColors'; diff --git a/components/theme/internal.ts b/components/theme/internal.ts index 8cc98c5f33..5c8a6b3a96 100644 --- a/components/theme/internal.ts +++ b/components/theme/internal.ts @@ -1,18 +1,18 @@ import { useStyleRegister } from '@ant-design/cssinjs'; -import { genCalc as calc, mergeToken, statisticToken, statistic } from '@ant-design/cssinjs-utils'; +import { genCalc as calc, mergeToken, statistic, statisticToken } from '@ant-design/cssinjs-utils'; import type { AliasToken, + FullToken, GenerateStyle, + GenStyleFn, + GetDefaultToken, + GlobalToken, + OverrideComponent, PresetColorKey, PresetColorType, SeedToken, - GlobalToken, UseComponentStyleResult, - FullToken, - GetDefaultToken, - OverrideComponent, - GenStyleFn, } from './interface'; import { PresetColors } from './interface'; import { getLineHeight } from './themes/shared/genFontSizes'; @@ -21,38 +21,38 @@ import { genComponentStyleHook, genStyleHooks, genSubStyleComponent } from './ut import genPresetColor from './util/genPresetColor'; import useResetIconStyle from './util/useResetIconStyle'; -export { DesignTokenContext, defaultConfig } from './context'; +export { defaultConfig, DesignTokenContext } from './context'; export type { CSSUtil, TokenWithCommonCls } from '@ant-design/cssinjs-utils'; export { + calc, // generators genComponentStyleHook, - genSubStyleComponent, genPresetColor, genStyleHooks, + genSubStyleComponent, + getLineHeight, // utils mergeToken, + // constant + PresetColors, + statistic, statisticToken, - calc, - getLineHeight, // hooks useResetIconStyle, useStyleRegister, useToken, - // constant - PresetColors, - statistic, }; export type { AliasToken, FullToken, - OverrideComponent, GenerateStyle, + GenStyleFn, + GetDefaultToken, + GlobalToken, + OverrideComponent, PresetColorKey, PresetColorType, SeedToken, UseComponentStyleResult, - GetDefaultToken, - GlobalToken, - GenStyleFn, }; diff --git a/components/timeline/index.tsx b/components/timeline/index.tsx index 8eda33d9c4..7bce8fb62a 100644 --- a/components/timeline/index.tsx +++ b/components/timeline/index.tsx @@ -1,5 +1,5 @@ import Timeline from './Timeline'; -export type { TimelineProps, TimelineItemType as TimelineItemProps } from './Timeline'; +export type { TimelineItemType as TimelineItemProps, TimelineProps } from './Timeline'; export default Timeline; diff --git a/components/tour/demo/style-class.tsx b/components/tour/demo/style-class.tsx index fb83d2155a..17380bfce5 100644 --- a/components/tour/demo/style-class.tsx +++ b/components/tour/demo/style-class.tsx @@ -1,5 +1,5 @@ import React, { useRef, useState } from 'react'; -import { Button, Flex, Space, Tour, Divider } from 'antd'; +import { Button, Divider, Flex, Space, Tour } from 'antd'; import type { TourProps, TourStepProps } from 'antd'; import { createStyles } from 'antd-style'; diff --git a/components/transfer/Section.tsx b/components/transfer/Section.tsx index 38454d1007..93754ca482 100644 --- a/components/transfer/Section.tsx +++ b/components/transfer/Section.tsx @@ -12,10 +12,10 @@ import type { RenderResult, RenderResultObject, SelectAllLabel, + SemanticName, TransferDirection, TransferLocale, TransferSearchOption, - SemanticName, } from './index'; import type { PaginationType, TransferKey } from './interface'; import type { ListBodyRef, TransferListBodyProps } from './ListBody'; diff --git a/components/transfer/demo/actions.tsx b/components/transfer/demo/actions.tsx index adc1c004fd..956afda326 100644 --- a/components/transfer/demo/actions.tsx +++ b/components/transfer/demo/actions.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Button, Transfer, message } from 'antd'; +import { Button, message, Transfer } from 'antd'; import { DoubleLeftOutlined, DoubleRightOutlined } from '@ant-design/icons'; import type { TransferProps } from 'antd'; diff --git a/components/tree/index.tsx b/components/tree/index.tsx index 168c48f60c..fe9ec2c455 100644 --- a/components/tree/index.tsx +++ b/components/tree/index.tsx @@ -13,19 +13,19 @@ export type { } from './DirectoryTree'; export type { + AntdTreeNodeAttribute, AntTreeNode, AntTreeNodeCheckedEvent, AntTreeNodeExpandedEvent, AntTreeNodeMouseEvent, AntTreeNodeProps, AntTreeNodeSelectedEvent, - AntdTreeNodeAttribute, TreeProps, } from './Tree'; export type { EventDataNode } from '@rc-component/tree/lib/interface'; -export type { DataNode, BasicDataNode }; +export type { BasicDataNode, DataNode }; type CompoundedComponent = (( props: React.PropsWithChildren> & React.RefAttributes, diff --git a/components/upload/style/picture.ts b/components/upload/style/picture.ts index efa4671504..47d20aff70 100644 --- a/components/upload/style/picture.ts +++ b/components/upload/style/picture.ts @@ -262,4 +262,4 @@ const genPictureCardStyle: GenerateStyle = (token) => { }; }; -export { genPictureStyle, genPictureCardStyle }; +export { genPictureCardStyle, genPictureStyle }; diff --git a/eslint.config.mjs b/eslint.config.mjs index 80c93b96d1..d86e4e1d89 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -54,8 +54,6 @@ export default antfu( 'react-hooks-extra/prefer-use-state-lazy-initialization': 'off', 'react-dom/no-missing-button-type': 'off', 'perfectionist/sort-imports': 'off', - 'perfectionist/sort-named-imports': 'off', - 'perfectionist/sort-named-exports': 'off', 'regexp/strict': 'off', /* turn off React 19 only rules */ 'react/no-forward-ref': 'off', diff --git a/scripts/visual-regression/local.ts b/scripts/visual-regression/local.ts index ae186f7645..74833ccac5 100644 --- a/scripts/visual-regression/local.ts +++ b/scripts/visual-regression/local.ts @@ -14,7 +14,7 @@ import { Octokit } from '@octokit/rest'; import { spawnSync } from 'child_process'; import difference from 'lodash/difference'; import open from 'open'; -import { select, input, checkbox, confirm } from '@inquirer/prompts'; +import { checkbox, confirm, input, select } from '@inquirer/prompts'; import { getUserAgent, resolveCommand } from 'package-manager-detector'; const ROOT = path.resolve(__dirname, '../../');