Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI/CD Pipeline Errors #653

Merged
merged 3 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*-lock.*
.pnpm-store
build
coverage
data
dist
node_modules
package.*
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/calendar/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@
</tr>
</thead>
<tbody>
{calendar.map((week: any, weekIdx: number) => (

Check warning on line 129 in packages/ui/src/components/calendar/calendar.tsx

View workflow job for this annotation

GitHub Actions / code-analysis

Unexpected any. Specify a different type
<tr key={"month" + weekIdx}>
{week.map((ele: T_Calendar, colIdx: any) => {

Check warning on line 131 in packages/ui/src/components/calendar/calendar.tsx

View workflow job for this annotation

GitHub Actions / code-analysis

Unexpected any. Specify a different type
if (isEmpty(ele)) {
return <td key={"empty" + colIdx} className="h-8 w-8" />;
}
Expand All @@ -141,6 +141,7 @@
return (
<td
key={key}
data-testid={key}
onClick={() => handleSelected(ele as CalendarDate)}
className={clsx(
"h-8 w-8 text-center text-xs font-normal leading-[18.8px]",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/date-input/date-input.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
Loading