Skip to content

Commit

Permalink
fix: lint (#6568)
Browse files Browse the repository at this point in the history
Signed-off-by: Artea <[email protected]>
  • Loading branch information
Sepush authored Nov 27, 2024
1 parent 863efe4 commit 9a2d034
Show file tree
Hide file tree
Showing 40 changed files with 101 additions and 104 deletions.
7 changes: 2 additions & 5 deletions scripts/post-build/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// terse cssr
const { replaceDefine, outDirs, srcDir } = require('../utils')
const { terseCssr } = require('./terse-cssr')

// replace __DEV__

const { replaceDefine, outDirs, srcDir } = require('../utils')
const { completePath } = require('./complete-path')
const { genWebTypes } = require('./gen-web-types')

const { terseCssr } = require('./terse-cssr')
;

(async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/_mixins/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { default as useConfig, defaultClsPrefix } from './use-config'
export { defaultClsPrefix, default as useConfig } from './use-config'
export { useThemeClass } from './use-css-vars-class'
export { default as useFormItem } from './use-form-item'
export { default as useHljs } from './use-hljs'
Expand Down
14 changes: 7 additions & 7 deletions src/config-provider/src/internal-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import type { Hljs } from '../../_mixins'
import type { AlertTheme } from '../../alert/styles'
import type { AnchorTheme } from '../../anchor/styles'
import type { AutoCompleteTheme } from '../../auto-complete/styles'
import type { AvatarTheme } from '../../avatar/styles'
import type { AvatarGroupTheme } from '../../avatar-group/styles'
import type { AvatarTheme } from '../../avatar/styles'
import type { BackTopTheme } from '../../back-top/styles'
import type { BadgeTheme } from '../../badge/styles'
import type { BreadcrumbTheme } from '../../breadcrumb/styles'
import type { ButtonGroupTheme } from '../../button-group/styles/light'
import type { Size as ButtonSize } from '../../button/src/interface'
import type { ButtonTheme } from '../../button/styles'
import type { ButtonGroupTheme } from '../../button-group/styles/light'
import type { CalendarTheme } from '../../calendar/styles'
import type { CardTheme } from '../../card/styles'
import type { CarouselTheme } from '../../carousel/styles'
import type { CascaderTheme } from '../../cascader/styles'
import type { CheckboxTheme } from '../../checkbox/styles'
import type { CodeTheme } from '../../code/styles'
import type { CollapseTheme } from '../../collapse/styles'
import type { CollapseTransitionTheme } from '../../collapse-transition/styles'
import type { CollapseTheme } from '../../collapse/styles'
import type { ColorPickerTheme } from '../../color-picker/styles'
import type {
DataTableRenderFilter,
Expand All @@ -44,16 +44,16 @@ import type { EmptyProps } from '../../empty'
import type { EmptyTheme } from '../../empty/styles'
import type { EquationTheme } from '../../equation/styles'
import type { FlexTheme } from '../../flex/styles'
import type { FloatButtonTheme } from '../../float-button/styles'
import type { FloatButtonGroupTheme } from '../../float-button-group/styles'
import type { FloatButtonTheme } from '../../float-button/styles'
import type { FormTheme } from '../../form/styles'
import type { GradientTextTheme } from '../../gradient-text/styles'
import type { IconTheme } from '../../icon/styles'
import type { IconWrapperTheme } from '../../icon-wrapper/styles'
import type { IconTheme } from '../../icon/styles'
import type { ImageTheme } from '../../image/styles'
import type { InputNumberTheme } from '../../input-number/styles'
import type { Size as InputSize } from '../../input/src/interface'
import type { InputTheme } from '../../input/styles'
import type { InputNumberTheme } from '../../input-number/styles'
import type { LayoutTheme } from '../../layout/styles'
import type { RowTheme } from '../../legacy-grid/styles'
import type { LegacyTransferTheme } from '../../legacy-transfer/styles'
Expand Down Expand Up @@ -96,8 +96,8 @@ import type { TimePickerTheme } from '../../time-picker/styles'
import type { TimelineTheme } from '../../timeline/styles'
import type { TooltipTheme } from '../../tooltip/styles'
import type { TransferTheme } from '../../transfer/styles'
import type { TreeTheme } from '../../tree/styles'
import type { TreeSelectTheme } from '../../tree-select/styles'
import type { TreeTheme } from '../../tree/styles'
import type { TypographyTheme } from '../../typography/styles'
import type { UploadTheme } from '../../upload/styles'
import type { WatermarkTheme } from '../../watermark/styles'
Expand Down
16 changes: 8 additions & 8 deletions src/data-table/index.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
export { default as NDataTable } from './src/DataTable'
export { dataTableProps } from './src/interface'
export type {
TableBaseColumn as DataTableBaseColumn,
TableColumn as DataTableColumn,
TableColumnGroup as DataTableColumnGroup,
ColumnKey as DataTableColumnKey,
TableColumns as DataTableColumns,
CreateRowClassName as DataTableCreateRowClassName,
CreateRowKey as DataTableCreateRowKey,
CreateRowProps as DataTableCreateRowProps,
CreateSummary as DataTableCreateSummary,
TableExpandColumn as DataTableExpandColumn,
FilterState as DataTableFilterState,
DataTableInst,
DataTableProps,
FilterState as DataTableFilterState,
RenderFilter as DataTableRenderFilter,
RenderFilterIcon as DataTableRenderFilterIcon,
RenderSorter as DataTableRenderSorter,
RenderSorterIcon as DataTableRenderSorterIcon,
RowData as DataTableRowData,
RowKey as DataTableRowKey,
SortState as DataTableSortState,
TableBaseColumn as DataTableBaseColumn,
TableColumn as DataTableColumn,
TableColumnGroup as DataTableColumnGroup,
TableColumns as DataTableColumns,
TableExpandColumn as DataTableExpandColumn,
TableSelectionColumn as DataTableSelectionColumn
TableSelectionColumn as DataTableSelectionColumn,
SortState as DataTableSortState
} from './src/interface'
export * from './src/publicTypes'
6 changes: 3 additions & 3 deletions src/descriptions/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { default as NDescriptions, descriptionsProps } from './src/Descriptions'
export { descriptionsProps, default as NDescriptions } from './src/Descriptions'
export type { DescriptionProps, DescriptionsProps } from './src/Descriptions'
export {
default as NDescriptionsItem,
descriptionsItemProps
descriptionsItemProps,
default as NDescriptionsItem
} from './src/DescriptionsItem'
export type { DescriptionItemProps } from './src/DescriptionsItem'
2 changes: 1 addition & 1 deletion src/divider/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as NDivider, dividerProps } from './src/Divider'
export { dividerProps, default as NDivider } from './src/Divider'
export type { DividerProps } from './src/Divider'
6 changes: 3 additions & 3 deletions src/drawer/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export { default as NDrawer, drawerProps } from './src/Drawer'
export { drawerProps, default as NDrawer } from './src/Drawer'
export type { DrawerProps } from './src/Drawer'
export type { Placement as DrawerPlacement } from './src/DrawerBodyWrapper'
export {
default as NDrawerContent,
drawerContentProps
drawerContentProps,
default as NDrawerContent
} from './src/DrawerContent'
export type { DrawerContentProps } from './src/DrawerContent'
6 changes: 3 additions & 3 deletions src/dropdown/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export { default as NDropdown, dropdownProps } from './src/Dropdown'
export { dropdownProps, default as NDropdown } from './src/Dropdown'
export type { DropdownProps } from './src/Dropdown'
export type {
DropdownDividerOption,
DropdownGroupOption,
DropdownMenuProps,
NodeProps as DropdownNodeProps,
DropdownOption,
DropdownRenderOption,
NodeProps as DropdownNodeProps
DropdownRenderOption
} from './src/interface'
2 changes: 1 addition & 1 deletion src/dynamic-input/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as NDynamicInput, dynamicInputProps } from './src/DynamicInput'
export { dynamicInputProps, default as NDynamicInput } from './src/DynamicInput'
export type { DynamicInputProps } from './src/DynamicInput'
4 changes: 2 additions & 2 deletions src/dynamic-input/styles/rtl.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { RtlItem } from '../../config-provider/src/internal-interface'
import { buttonRtl } from '../../button/styles/rtl'
import { buttonGroupRtl } from '../../button-group/styles/rtl'
import { buttonRtl } from '../../button/styles/rtl'
import { checkboxRtl } from '../../checkbox/styles/rtl'
import { inputRtl } from '../../input/styles/rtl'
import { inputNumberRtl } from '../../input-number/styles/rtl'
import { inputRtl } from '../../input/styles/rtl'
import rtlStyle from '../src/styles/rtl.cssr'

export const dynamicInputRtl: RtlItem = {
Expand Down
2 changes: 1 addition & 1 deletion src/dynamic-tags/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as NDynamicTags, dynamicTagsProps } from './src/DynamicTags'
export { dynamicTagsProps, default as NDynamicTags } from './src/DynamicTags'
export type { DynamicTagsProps } from './src/DynamicTags'
export type { DynamicTagsOption } from './src/interface'
2 changes: 1 addition & 1 deletion src/element/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as NElement, elementProps } from './src/Element'
export { elementProps, default as NElement } from './src/Element'
export { default as NEl } from './src/Element'
export type { ElementProps } from './src/Element'
2 changes: 1 addition & 1 deletion src/ellipsis/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as NEllipsis, ellipsisProps } from './src/Ellipsis'
export { ellipsisProps, default as NEllipsis } from './src/Ellipsis'
export type { EllipsisProps } from './src/Ellipsis'
export { NPerformantEllipsis } from './src/PerformantEllipsis'
2 changes: 1 addition & 1 deletion src/empty/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as NEmpty, emptyProps } from './src/Empty'
export { emptyProps, default as NEmpty } from './src/Empty'
export type { EmptyProps } from './src/Empty'
2 changes: 1 addition & 1 deletion src/equation/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { Equation as NEquation, equationProps } from './src/Equation'
export { equationProps, Equation as NEquation } from './src/Equation'
export type { EquationProps } from './src/Equation'
2 changes: 1 addition & 1 deletion src/flex/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as NFlex, flexProps } from './src/Flex'
export { flexProps, default as NFlex } from './src/Flex'
export type { FlexProps } from './src/Flex'
export type { FlexAlign, FlexJustify } from './src/type'
4 changes: 2 additions & 2 deletions src/float-button-group/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export {
default as NFloatButtonGroup,
floatButtonGroupProps
floatButtonGroupProps,
default as NFloatButtonGroup
} from './src/FloatButtonGroup'
export type { FloatButtonGroupProps } from './src/FloatButtonGroup'
2 changes: 1 addition & 1 deletion src/float-button/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as NFloatButton, floatButtonProps } from './src/FloatButton'
export { floatButtonProps, default as NFloatButton } from './src/FloatButton'
export type { FloatButtonProps } from './src/FloatButton'
10 changes: 5 additions & 5 deletions src/form/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export { default as NForm, formProps } from './src/Form'
export { formProps, default as NForm } from './src/Form'
export type { FormProps } from './src/Form'
export { default as NFormItem, formItemProps } from './src/FormItem'
export { formItemProps, default as NFormItem } from './src/FormItem'
export type { FormItemProps } from './src/FormItem'
// deprecated
export { default as NFormItemCol } from './src/FormItemCol'
export type { FormItemColProps } from './src/FormItemCol'
export {
default as NFormItemGridItem,
default as NFormItemGi,
formItemGiProps,
formItemGiProps as formItemGridItemProps
formItemGiProps as formItemGridItemProps,
default as NFormItemGi,
default as NFormItemGridItem
} from './src/FormItemGridItem'

export type {
Expand Down
2 changes: 1 addition & 1 deletion src/gradient-text/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as NGradientText, gradientTextProps } from './src/GradientText'
export { gradientTextProps, default as NGradientText } from './src/GradientText'
export type { GradientTextProps } from './src/GradientText'
6 changes: 3 additions & 3 deletions src/grid/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { default as NGrid, gridProps } from './src/Grid'
export { gridProps, default as NGrid } from './src/Grid'
export type { GridProps } from './src/Grid'
export { default as NGridItem, gridItemProps } from './src/GridItem'
export { default as NGi, gridItemProps as giProps } from './src/GridItem'
export { gridItemProps, default as NGridItem } from './src/GridItem'
export { gridItemProps as giProps, default as NGi } from './src/GridItem'
export type { GridItemProps } from './src/GridItem'
2 changes: 1 addition & 1 deletion src/highlight/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as NHighlight, highlightProps } from './src/Highlight'
export { highlightProps, default as NHighlight } from './src/Highlight'
export type * from './src/public-types'
4 changes: 2 additions & 2 deletions src/image/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { default as NImage, imageProps } from './src/Image'
export { imageProps, default as NImage } from './src/Image'
export type { ImageProps } from './src/Image'
export { default as NImageGroup, imageGroupProps } from './src/ImageGroup'
export { imageGroupProps, default as NImageGroup } from './src/ImageGroup'
export type { ImageGroupProps } from './src/ImageGroup'
export type * from './src/public-types'
2 changes: 1 addition & 1 deletion src/image/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr'
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr'
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr'
import { c, cB, cNotM } from '../../../_utils/cssr'

// vars:
Expand Down
4 changes: 2 additions & 2 deletions src/infinite-scroll/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export {
default as NInfiniteScroll,
infiniteScrollProps
infiniteScrollProps,
default as NInfiniteScroll
} from './src/InfiniteScroll'
export type { InfiniteScrollProps } from './src/InfiniteScroll'
2 changes: 1 addition & 1 deletion src/input-number/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as NInputNumber, inputNumberProps } from './src/InputNumber'
export { inputNumberProps, default as NInputNumber } from './src/InputNumber'
export type { InputNumberProps } from './src/InputNumber'
export type { InputNumberInst } from './src/interface'
8 changes: 4 additions & 4 deletions src/input/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export { default as NInput, inputProps } from './src/Input'
export { inputProps, default as NInput } from './src/Input'
export type { InputProps } from './src/Input'
export { default as NInputGroup, inputGroupProps } from './src/InputGroup'
export { inputGroupProps, default as NInputGroup } from './src/InputGroup'
export type { InputGroupProps } from './src/InputGroup'
export {
default as NInputGroupLabel,
inputGroupLabelProps
inputGroupLabelProps,
default as NInputGroupLabel
} from './src/InputGroupLabel'
export type { InputGroupLabelProps } from './src/InputGroupLabel'
export type { InputInst } from './src/interface'
18 changes: 9 additions & 9 deletions src/layout/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
export type {
LayoutInst,
LayoutInst as LayoutContentInst,
LayoutInst,
LayoutSiderInst
} from './src/interface'
export {
default as NLayout,
layoutProps as layoutContentProps,
layoutProps,
layoutProps as layoutContentProps
default as NLayout
} from './src/Layout'
export type {
LayoutProps,
LayoutProps as LayoutContentProps
LayoutProps as LayoutContentProps,
LayoutProps
} from './src/Layout'
export { default as NLayoutContent } from './src/LayoutContent'
export { default as NLayoutFooter, layoutFooterProps } from './src/LayoutFooter'
export { layoutFooterProps, default as NLayoutFooter } from './src/LayoutFooter'
export type { LayoutFooterProps } from './src/LayoutFooter'
export {
default as NLayoutHeader,
headerProps as layoutHeaderProps
headerProps as layoutHeaderProps,
default as NLayoutHeader
} from './src/LayoutHeader'
export type { LayoutHeaderProps } from './src/LayoutHeader'
export { default as NLayoutSider, layoutSiderProps } from './src/LayoutSider'
export { layoutSiderProps, default as NLayoutSider } from './src/LayoutSider'
export type { LayoutSiderProps } from './src/LayoutSider'
4 changes: 2 additions & 2 deletions src/legacy-transfer/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type { Option as LegacyTransferOption } from './src/interface'
export {
default as NLegacyTransfer,
transferProps as legacyTransferProps
transferProps as legacyTransferProps,
default as NLegacyTransfer
} from './src/Transfer'
export type { transferProps as LegacyTransferProps } from './src/Transfer'
2 changes: 1 addition & 1 deletion src/list/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default as NList, listProps } from './src/List'
export { listProps, default as NList } from './src/List'
export type { ListProps } from './src/List'
export { default as NListItem } from './src/ListItem'
4 changes: 2 additions & 2 deletions src/loading-bar/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export {
default as NLoadingBarProvider,
loadingBarProviderProps
loadingBarProviderProps,
default as NLoadingBarProvider
} from './src/LoadingBarProvider'
export type {
LoadingBarApiInjection as LoadingBarApi,
Expand Down
2 changes: 1 addition & 1 deletion src/log/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as NLog, logProps } from './src/Log'
export { logProps, default as NLog } from './src/Log'
export type { LogInst, LogProps } from './src/Log'
2 changes: 1 addition & 1 deletion src/mention/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export type { MentionInst, MentionOption } from './src/interface'
export { default as NMention, mentionProps } from './src/Mention'
export { mentionProps, default as NMention } from './src/Mention'
export type { MentionProps } from './src/Mention'
2 changes: 1 addition & 1 deletion src/menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export type {
MenuNodeProps,
MenuOption
} from './src/interface'
export { default as NMenu, menuProps } from './src/Menu'
export { menuProps, default as NMenu } from './src/Menu'
export type { MenuProps } from './src/Menu'
4 changes: 2 additions & 2 deletions src/message/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export {
default as NMessageProvider,
messageProviderProps
messageProviderProps,
default as NMessageProvider
} from './src/MessageProvider'
export type {
MessageApiInjection as MessageApi,
Expand Down
2 changes: 1 addition & 1 deletion src/modal/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { useModal, useModalReactiveList } from './src/composables'
export { default as NModal, modalProps } from './src/Modal'
export { modalProps, default as NModal } from './src/Modal'

export type { ModalProps } from './src/Modal'
export { modalProviderProps, NModalProvider } from './src/ModalProvider'
Expand Down
2 changes: 1 addition & 1 deletion src/modal/src/styles/index.cssr.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr'
import { fadeInScaleUpTransition } from '../../../_styles/transitions/fade-in-scale-up.cssr'
import { fadeInTransition } from '../../../_styles/transitions/fade-in.cssr'
import { c, cB } from '../../../_utils/cssr'

// vars:
Expand Down
Loading

0 comments on commit 9a2d034

Please sign in to comment.