diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..9e6de2f --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +tailwind.config.ts \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 4f0e6c5..1c88a7d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -15,7 +15,7 @@ "rules": { "react/jsx-props-no-spreading": "off" } - }, + } ], "settings": { "react": { @@ -58,6 +58,17 @@ "no-promise-executor-return": "off", "@typescript-eslint/no-shadow": "off", "react/require-default-props": "off", + "import/order": [ + "error", + { + "pathGroups": [ + { + "pattern": "@/**", + "group": "external" + } + ] + } + ], "no-shadow": "off", "prettier/prettier": [ "warn", diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index d1aae34..536f2e2 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -87,6 +87,9 @@ const preview = { light: { ...themes.normal, appBg: 'red' }, }, parameters: { + nextjs: { + appDirectory: true, + }, controls: { matchers: { color: /(background|color)$/i, diff --git a/src/app/components/button/stories/Button.stories.tsx b/src/app/components/button/stories/Button.stories.tsx index a786fdd..d7739ae 100644 --- a/src/app/components/button/stories/Button.stories.tsx +++ b/src/app/components/button/stories/Button.stories.tsx @@ -1,7 +1,7 @@ -import dashboardAppModule from "@/app/[lang]/dashboard/module/dashboard-app-module"; import CreateRandomInvoiceButtonVM from "@/app/[lang]/dashboard/vm/create-random-invoice-button-vm"; import Button from "@/app/components/button/button"; import { DiContext, useDI } from "@/bootstrap/di/di-context"; +import mockedModuleDi from "@/bootstrap/di/mocked-module-di"; import Story from "@/bootstrap/helpers/view/storybook-base-template-type"; import getArgVM from "@/bootstrap/helpers/view/storybook-with-arg-vm"; import createInvoiceUsecase from "@/feature/core/invoice/domain/usecase/create-invoice-usecase"; @@ -28,23 +28,38 @@ export const Primary: Story = { "vm.props.isDisable": false, }, render: (_props, globalData) => { - const vm = getArgVM(globalData.parsedProps.vm)// You can use parsed props to access your vm properties. - return