Skip to content

Commit

Permalink
chore: yarn lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sohee-K committed Apr 5, 2024
1 parent f244841 commit f2be326
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
4 changes: 0 additions & 4 deletions apps/docs/src/stories/Toast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const ToastSample = ({ option }: { option: ToastOptionType }) => {
};

export const Default: StoryObj = {
name: "Default",
argTypes: { icon: { control: { disable: true } } },
render: () => {
const option: ToastOptionType = {
Expand Down Expand Up @@ -115,7 +114,6 @@ export const CustomIcon: StoryObj = {
};

export const ActionButton: StoryObj = {
name: "Action Button",
argTypes: { icon: { control: { disable: true } } },
render: () => {
const option: ToastOptionType = {
Expand All @@ -128,7 +126,6 @@ export const ActionButton: StoryObj = {
};

export const TextOver: StoryObj = {
name: "Text Over",
argTypes: { icon: { control: { disable: true } } },
render: () => {
const option: ToastOptionType = {
Expand All @@ -141,7 +138,6 @@ export const TextOver: StoryObj = {
};

export const CloseToast: StoryObj = {
name: "CloseToast",
argTypes: { icon: { control: { disable: true } } },
render: () => {
// eslint-disable-next-line react-hooks/rules-of-hooks
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/CheckBox/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { InputHTMLAttributes } from 'react';
import { forwardRef } from 'react';
// TODO: import 경로 수정
// eslint-disable-next-line import/no-relative-packages -- 추후 경로 수정 필요
import IconCheck from '../../icons/src/Icon/Interaction/ic-check';
import {
check,
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/Test/Test.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as styles from './style.css';

interface Props {
interface TestProps {
children?: React.ReactNode;
text: string;
color?: 'black' | 'red' | 'blue';
size?: 'normal' | 'big'
}

function Test(props: Props) {
function Test(props: TestProps) {
const { children, text, color = 'black', size = 'normal' } = props;

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"target": "esnext"
},
"extends": "tsconfig/react-library.json",
"include": ["index.ts"],
"include": ["index.ts", "turbo/generators/config.ts"],
"exclude": ["dist", "build", "node_modules"]
}
1 change: 0 additions & 1 deletion packages/ui/turbo/generators/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { PlopTypes } from "@turbo/gen";

// Learn more about Turborepo Generators at https://turbo.build/repo/docs/core-concepts/monorepos/code-generation

// eslint-disable-next-line import/no-default-export -- Turbo generators require default export
export default function generator(plop: PlopTypes.NodePlopAPI): void {
// A simple generator to add a new React component to the internal UI library
plop.setGenerator("react-component", {
Expand Down

0 comments on commit f2be326

Please sign in to comment.