Skip to content

Commit

Permalink
fixes eslint stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tibuurcio committed Jan 17, 2024
2 parents cc91704 + b8801b5 commit 5efb11d
Show file tree
Hide file tree
Showing 99 changed files with 2,304 additions and 533 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ module.exports = {
ignorePatterns: [".eslintrc.js"],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"react/react-in-jsx-scope": "off",
},
globals: {
"React": true,
"expect": true
}
};
4 changes: 1 addition & 3 deletions src/components/data-display/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Avatar as AntAvatar , type AvatarProps as AntAvatarProps } from "antd";

import { Avatar as AntAvatar, type AvatarProps as AntAvatarProps } from "antd";

export interface IAvatarProps extends AntAvatarProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Badge/Badge.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Badge as AntBadge , type BadgeProps as AntBadgeProps } from "antd";

import { Badge as AntBadge, type BadgeProps as AntBadgeProps } from "antd";

export interface IBadgeProps extends AntBadgeProps {}

Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Calendar as AntCalendar , type CalendarProps as AntCalendarProps } from "antd";

import {
Calendar as AntCalendar,
type CalendarProps as AntCalendarProps,
} from "antd";

export interface ICalendarProps extends AntCalendarProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Card as AntCard , type CardProps as AntCardProps } from "antd";

import { Card as AntCard, type CardProps as AntCardProps } from "antd";

export interface ICardProps extends AntCardProps {}

Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Carousel as AntCarousel , type CarouselProps as AntCarouselProps } from "antd";

import {
Carousel as AntCarousel,
type CarouselProps as AntCarouselProps,
} from "antd";

export interface ICarouselProps extends AntCarouselProps {}

Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Collapse/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Collapse as AntCollapse , type CollapseProps as AntCollapseProps } from "antd";

import {
Collapse as AntCollapse,
type CollapseProps as AntCollapseProps,
} from "antd";

export interface ICollapseProps extends AntCollapseProps {}

Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Descriptions/Descriptions.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Descriptions as AntDescriptions , type DescriptionsProps as AntDescriptionsProps } from "antd";

import {
Descriptions as AntDescriptions,
type DescriptionsProps as AntDescriptionsProps,
} from "antd";

export interface IDescriptionsProps extends AntDescriptionsProps {}

Expand Down
3 changes: 1 addition & 2 deletions src/components/data-display/Empty/Empty.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from "react";
import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from "@storybook/react";

import { Empty } from "src/components/data-display/Empty/Empty";

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Empty/Empty.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Empty as AntEmpty , type EmptyProps as AntEmptyProps } from "antd";

import { Empty as AntEmpty, type EmptyProps as AntEmptyProps } from "antd";

export interface IEmptyProps extends AntEmptyProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Image/Image.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Image as AntImage , type ImageProps as AntImageProps } from "antd";

import { Image as AntImage, type ImageProps as AntImageProps } from "antd";

export interface IImageProps extends AntImageProps {}

Expand Down
3 changes: 1 addition & 2 deletions src/components/data-display/List/List.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from "react";
import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from "@storybook/react";

import { List } from "src/components/data-display/List/List";

Expand Down
1 change: 0 additions & 1 deletion src/components/data-display/List/List.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { List as AntList, type ListProps as AntListProps } from "antd";

export interface IListProps<T> extends AntListProps<T> {}
Expand Down
8 changes: 5 additions & 3 deletions src/components/data-display/Popover/Popover.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from "react";
import { Popover , type IPopoverProps } from "src/components/data-display/Popover/Popover";
import {
Popover,
type IPopoverProps,
} from "src/components/data-display/Popover/Popover";

import { type Meta , type StoryObj } from "@storybook/react";
import { type Meta, type StoryObj } from "@storybook/react";

import { Button } from "src/components/general/Button/Button";

Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Popover/Popover.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Popover as AntPopover , type PopoverProps as AntPopoverProps } from "antd";

import {
Popover as AntPopover,
type PopoverProps as AntPopoverProps,
} from "antd";

export interface IPopoverProps extends AntPopoverProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/QRCode/QRCode.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { QRCode as AntQRCode , type QRCodeProps as AntQRCodeProps } from "antd";

import { QRCode as AntQRCode, type QRCodeProps as AntQRCodeProps } from "antd";

export interface IQRCodeProps extends AntQRCodeProps {}

Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Segmented/Segmented.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Segmented as AntSegmented , type SegmentedProps as AntSegmentedProps } from "antd";

import {
Segmented as AntSegmented,
type SegmentedProps as AntSegmentedProps,
} from "antd";

export interface ISegmentedProps extends AntSegmentedProps {
ref?: React.RefObject<HTMLDivElement>;
Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Statistic/Statistic.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Statistic as AntStatistic , type StatisticProps as AntStatisticProps } from "antd";

import {
Statistic as AntStatistic,
type StatisticProps as AntStatisticProps,
} from "antd";

export interface IStatisticProps extends AntStatisticProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Table/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Table as AntTable , type TableProps as AntTableProps } from "antd";

import { Table as AntTable, type TableProps as AntTableProps } from "antd";

export interface ITableProps extends AntTableProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Tabs as AntTabs , type TabsProps as AntTabsProps } from "antd";

import { Tabs as AntTabs, type TabsProps as AntTabsProps } from "antd";

export interface ITabsProps extends AntTabsProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Tag/Tag.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Tag as AntTag , type TagProps as AntTagProps } from "antd";

import { Tag as AntTag, type TagProps as AntTagProps } from "antd";

export interface ITagProps extends AntTagProps {}

Expand Down
7 changes: 4 additions & 3 deletions src/components/data-display/Timeline/Timeline.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Timeline as AntTimeline , type TimelineProps as AntTimelineProps } from "antd";

import {
Timeline as AntTimeline,
type TimelineProps as AntTimelineProps,
} from "antd";

export interface ITimelineProps extends AntTimelineProps {}

Expand Down
1 change: 0 additions & 1 deletion src/components/data-display/Tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { Tooltip as AntTooltip } from "antd";
import { type TooltipPropsWithTitle as AntTooltipPropsWithTitle } from "antd/es/tooltip";

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Tour/Tour.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Tour as AntTour , type TourProps as AntTourProps } from "antd";

import { Tour as AntTour, type TourProps as AntTourProps } from "antd";

export interface ITourProps extends AntTourProps {}

Expand Down
4 changes: 1 addition & 3 deletions src/components/data-display/Tree/Tree.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React from "react";
import { Tree as AntTree , type TreeProps as AntTreeProps } from "antd";

import { Tree as AntTree, type TreeProps as AntTreeProps } from "antd";

export interface ITreeProps extends AntTreeProps {}

Expand Down
Loading

0 comments on commit 5efb11d

Please sign in to comment.