diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..6e76dbec --- /dev/null +++ b/.eslintignore @@ -0,0 +1,8 @@ +*-lock.* +.pnpm-store +build +coverage +data +dist +node_modules +package.* diff --git a/package.json b/package.json index a86fec21..afe1c06f 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "build": "pnpm nx run-many --target=build --output-style=stream --all", - "ci:format": "pnpm dlx prettier --check --ignore-unknown '**/*.{css,js,json,jsx,md,ts,tsx,yaml}'", - "ci:lint": "pnpm dlx eslint --fix-dry-run '**/*.{js,jsx,ts,tsx}'", + "ci:format": "prettier --check --ignore-unknown '**/*.{css,js,json,jsx,md,ts,tsx,yaml}'", + "ci:lint": "eslint --fix-dry-run '**/*.{js,jsx,ts,tsx}'", "clean": "rm -rf dist node_modules && pnpm --recursive --parallel exec rm -rf dist node_modules", "dev": "pnpm nx run-many --target=dev --output-style=stream --all", "graph": "pnpm nx graph", diff --git a/packages/ui/src/components/calendar/calendar.tsx b/packages/ui/src/components/calendar/calendar.tsx index 97175467..c47f0b13 100644 --- a/packages/ui/src/components/calendar/calendar.tsx +++ b/packages/ui/src/components/calendar/calendar.tsx @@ -141,6 +141,7 @@ export default function Calendar({ initDate = new Date(), onSelectValueChange }: return ( handleSelected(ele as CalendarDate)} className={clsx( "h-8 w-8 text-center text-xs font-normal leading-[18.8px]", diff --git a/packages/ui/src/components/date-input/date-input.test.tsx b/packages/ui/src/components/date-input/date-input.test.tsx index 9a660be8..affd3b7a 100644 --- a/packages/ui/src/components/date-input/date-input.test.tsx +++ b/packages/ui/src/components/date-input/date-input.test.tsx @@ -49,7 +49,7 @@ describe("Date Input", () => { expect(monthOptions).toHaveTextContent(month); expect(yearOptions).toHaveTextContent(year); - expect(screen.getByText(day).getAttribute("class")).toContain("rounded-full"); + expect(screen.getByTestId(`${today.getMonth()}/${day}/${year}`).getAttribute("class")).toContain("rounded-full"); }); test("date input value updates when date is selected in Calendar", async () => {