chore: turn on perfectionist/sort-exports (#55172)

This commit is contained in:
thinkasany
2025-09-28 11:46:21 +08:00
committed by GitHub
parent 90b4a4373d
commit 5db1e6f449
9 changed files with 17 additions and 16 deletions

View File

@@ -1,10 +1,10 @@
export { default as HeadingAnchor } from './HeadingAnchor';
export { default as Reset } from './Reset';
export { default as Common } from './Common';
export { default as Markdown } from './Markdown';
export { default as Highlight } from './Highlight';
export { default as Demo } from './Demo';
export { default as Responsive } from './Responsive';
export { default as HeadingAnchor } from './HeadingAnchor';
export { default as Highlight } from './Highlight';
export { default as Markdown } from './Markdown';
export { default as NProgress } from './NProgress';
export { default as PreviewImage } from './PreviewImage';
export { default as Reset } from './Reset';
export { default as Responsive } from './Responsive';
export { default as SearchBar } from './SearchBar';

View File

@@ -1,6 +1,6 @@
import ColorPicker from './ColorPicker';
export type { ColorPickerProps } from './interface';
export type { AggregationColor as Color } from './color';
export type { ColorPickerProps } from './interface';
export default ColorPicker;

View File

@@ -130,6 +130,8 @@ export { default as Space } from './space';
export type { SpaceProps } from './space';
export { default as Spin } from './spin';
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 { default as Steps } from './steps';
@@ -176,8 +178,7 @@ export type { UploadFile, UploadProps, DraggerProps } from './upload';
export { default as version } from './version';
export { default as Watermark } from './watermark';
export type { WatermarkProps } from './watermark';
export { default as Splitter } from './splitter';
export type { SplitterProps } from './splitter';
// TODO: Remove in v6
/* eslint-disable-next-line perfectionist/sort-exports */
export { unstableSetRender } from './config-provider/UnstableContext';

View File

@@ -18,8 +18,8 @@ import { ListContext } from './context';
import Item from './Item';
import useStyle from './style';
export type { ListItemMetaProps, ListItemProps } from './Item';
export type { ListConsumerProps } from './context';
export type { ListItemMetaProps, ListItemProps } from './Item';
export type ColumnCount = number;

View File

@@ -13,9 +13,9 @@ import Item from './MenuItem';
import type { MenuItemProps } from './MenuItem';
import SubMenu from './SubMenu';
import type { SubMenuProps } from './SubMenu';
export type { MenuDividerProps } from './MenuDivider';
export type { MenuItemGroupProps } from 'rc-menu';
export type { MenuDividerProps } from './MenuDivider';
export type { MenuItemProps, MenuProps, MenuTheme, SubMenuProps };
export type MenuRef = {

View File

@@ -7,6 +7,9 @@ import type { SeedToken } from './seeds';
export type MappingAlgorithm = DerivativeFunc<SeedToken, MapToken>;
export type { AliasToken } from './alias';
export type { ComponentTokenMap } from './components';
export type {
GlobalToken,
OverrideToken,
@@ -16,8 +19,6 @@ export type {
GenStyleFn,
} from './cssinjs-utils';
export type { AliasToken } from './alias';
export type { ComponentTokenMap } from './components';
export type {
ColorMapToken,
ColorNeutralMapToken,

View File

@@ -21,9 +21,9 @@ import { genComponentStyleHook, genStyleHooks, genSubStyleComponent } from './ut
import genPresetColor from './util/genPresetColor';
import useResetIconStyle from './util/useResetIconStyle';
export { DesignTokenContext, defaultConfig } from './context';
export type { CSSUtil, TokenWithCommonCls } from '@ant-design/cssinjs-utils';
export { DesignTokenContext, defaultConfig } from './context';
export {
// generators
genComponentStyleHook,

View File

@@ -7,11 +7,11 @@ import DirectoryTree from './DirectoryTree';
import type { TreeProps } from './Tree';
import TreePure from './Tree';
export type { EventDataNode } from 'rc-tree/lib/interface';
export type {
ExpandAction as DirectoryTreeExpandAction,
DirectoryTreeProps,
} from './DirectoryTree';
export type {
AntTreeNode,
AntTreeNodeCheckedEvent,
@@ -22,6 +22,7 @@ export type {
AntdTreeNodeAttribute,
TreeProps,
} from './Tree';
export type { EventDataNode } from 'rc-tree/lib/interface';
export type { DataNode, BasicDataNode };
type CompoundedComponent = (<T extends BasicDataNode | DataNode = DataNode>(

View File

@@ -43,7 +43,6 @@ export default antfu(
'regexp/optimal-quantifier-concatenation': 'off',
'test/prefer-lowercase-title': 'off',
'react-hooks/exhaustive-deps': 'off',
'react/prefer-destructuring-assignment': 'off', // TODO: remove this
'react-refresh/only-export-components': 'off', // TODO: remove this
'react/no-clone-element': 'off',
'react/no-children-for-each': 'off',
@@ -56,7 +55,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-exports': 'off',
'perfectionist/sort-named-imports': 'off',
'perfectionist/sort-named-exports': 'off',
'regexp/strict': 'off',