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

feat(formatting): adds prettier and related run scripts #914

Merged
merged 12 commits into from
Jan 15, 2025
Merged

Conversation

tbolt
Copy link
Collaborator

@tbolt tbolt commented Dec 10, 2024

Description

Adds prettier and a couple run run scripts:
bun run format:check lists files that are not aligned to prettier formatting
bun run format:write will update all files to align with prettier formatting

Adds eslint rule that enforces prettier formatting

Updates all files to align with prettier formatting

Copy link
Contributor

github-actions bot commented Dec 10, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 86.49% 7696 / 8898
🔵 Statements 85.65% 8082 / 9435
🔵 Functions 80.09% 2294 / 2864
🔵 Branches 55.81% 1573 / 2818
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
lib/lambda/processEmailsHandler.test.ts 100% 100% 100% 100%
lib/lambda/submit/submissionPayloads/app-k.ts 87.5% 75% 100% 93.33% 7, 21
lib/lambda/submit/submissionPayloads/capitated-initial.ts 87.5% 75% 100% 93.33% 7, 21
lib/lambda/submit/submissionPayloads/capitated-renewal.ts 87.5% 75% 100% 93.33% 9, 23
lib/lambda/submit/submissionPayloads/contracting-amendment.ts 87.5% 75% 100% 93.33% 9, 23
lib/lambda/submit/submissionPayloads/contracting-initial.ts 87.5% 75% 100% 93.33% 7, 21
lib/lambda/submit/submissionPayloads/contracting-renewal.ts 87.5% 75% 100% 93.33% 9, 23
lib/lambda/submit/submissionPayloads/new-chip-submission.ts 87.5% 75% 100% 93.33% 7, 21
lib/lambda/submit/submissionPayloads/new-medicaid-submission.ts 87.5% 75% 100% 93.33% 7, 23
lib/lambda/submit/submissionPayloads/temporary-extension.ts 83.33% 70% 100% 88.23% 9, 23, 27
lib/lambda/submit/submissionPayloads/toggle-withdraw-rai.ts 81.25% 62.5% 100% 86.66% 7, 12, 21
lib/lambda/submit/submissionPayloads/withdraw-rai.ts 87.5% 75% 100% 93.33% 7, 21
lib/lambda/update/adminChangeSchemas.ts 100% 100% 100% 100%
lib/libs/env.ts 100% 100% 100% 100%
lib/libs/handler-lib.ts 42.85% 75% 33.33% 50% 6-16
lib/libs/topics-lib.ts 95.34% 75% 80% 97.43% 121
lib/libs/api/kafka.ts 100% 75% 100% 100%
lib/libs/api/statusMemo.ts 100% 100% 100% 100%
lib/libs/email/getAllStateUsers.ts 84.21% 75% 100% 83.33% 34, 57-58
lib/libs/email/index.ts 34.28% 25% 50% 35.29% 85-86, 108-143
lib/libs/email/content/uploadSubsequentDocuments/emailTemplates/MedSpaCMS.tsx 100% 100% 100% 100%
lib/libs/email/preview/InitialSubmissions/CMS/Waiver_Capitated.tsx 100% 100% 100% 100%
lib/libs/tests/env.test.ts 100% 100% 100% 100%
lib/packages/shared-types/attachments.ts 66.66% 44.44% 66.66% 68.42% 63-74, 65-66
lib/packages/shared-types/authority.ts 100% 100% 100% 100%
lib/packages/shared-types/forms.ts 100% 100% 100% 100%
lib/packages/shared-types/events/capitated-amendment.ts 100% 100% 100% 100%
lib/packages/shared-types/events/contracting-amendment.ts 100% 100% 100% 100%
lib/packages/shared-types/events/new-chip-submission.ts 100% 100% 100% 100%
lib/packages/shared-types/events/new-medicaid-submission.ts 100% 100% 100% 100%
lib/packages/shared-types/events/temporary-extension.ts 100% 100% 100% 100%
lib/packages/shared-types/events/toggle-withdraw-rai.ts 100% 100% 100% 100%
lib/packages/shared-utils/cloudformation.ts 100% 75% 75% 100%
lib/packages/shared-utils/regex.ts 100% 90.47% 75% 100%
lib/packages/shared-utils/seatool-date-helper.test.ts 93.87% 100% 93.33% 93.87% 80-82
lib/packages/shared-utils/seatool-date-helper.ts 93.33% 66.66% 50% 92% 18-19
lib/packages/shared-utils/secrets-manager.ts 100% 100% 50% 100%
react-app/src/zodIdValidator.ts 100% 100% 100% 100%
react-app/src/api/getAttachmentUrl.ts 33.33% 100% 0% 33.33% 9-17
react-app/src/api/useGetCPOCs.ts 0% 0% 0% 0% 7-19
react-app/src/api/useGetCounties.ts 78.94% 80% 75% 81.25% 15, 42-43
react-app/src/api/useGetForm.ts 66.66% 100% 33.33% 72.72% 15-16, 30
react-app/src/api/useGetItem.ts 72% 100% 62.5% 72% 40-51
react-app/src/api/useGetPackageActions.ts 40% 100% 0% 40% 8, 14-16
react-app/src/api/useGetTypes.ts 66.66% 78.57% 42.85% 66.66% 34-54
react-app/src/api/useGetUser.test.ts 97.14% 88.88% 100% 97.05% 15-16
react-app/src/api/useSearch.ts 18.18% 0% 0% 20% 22-32, 36-61, 68-69, 81-85
react-app/src/components/Alert/index.tsx 100% 100% 100% 100%
react-app/src/components/BreadCrumb/BreadCrumb.tsx 100% 100% 100% 100%
react-app/src/components/BreadCrumb/create-breadcrumbs.ts 100% 100% 100% 100%
react-app/src/components/Cards/CardWithTopBorder.tsx 100% 100% 100% 100%
react-app/src/components/Cards/SectionCard.tsx 100% 100% 100% 100%
react-app/src/components/Chip/Chip.test.tsx 100% 100% 100% 100%
react-app/src/components/Chip/index.tsx 100% 100% 100% 100%
react-app/src/components/ConfirmationDialog/ConfirmationDialog.tsx 0% 0% 0% 0%
react-app/src/components/ConfirmationDialog/userPrompt.tsx 100% 80% 100% 100%
react-app/src/components/Container/Accordion/index.tsx 100% 100% 100% 100%
react-app/src/components/DetailsSection/DetailsSection.test.tsx 100% 100% 100% 100%
react-app/src/components/Dialog/index.tsx 100% 100% 100% 100%
react-app/src/components/Form/content/ContentWrappers.tsx 88.88% 28.57% 50% 88.88% 74-88
react-app/src/components/Inputs/button.test.tsx 100% 100% 100% 100%
react-app/src/components/Inputs/button.tsx 100% 75% 100% 100%
react-app/src/components/Inputs/calendar.tsx 100% 100% 100% 100%
react-app/src/components/Inputs/checkbox.test.tsx 100% 100% 86.66% 100%
react-app/src/components/Inputs/date-picker.tsx 100% 100% 100% 100%
react-app/src/components/Inputs/form.tsx 96.77% 92.85% 100% 96.77% 48
react-app/src/components/Inputs/input.tsx 100% 30% 100% 100%
react-app/src/components/Inputs/label.tsx 100% 100% 100% 100%
react-app/src/components/Inputs/radio-group.tsx 100% 100% 100% 100%
react-app/src/components/Inputs/textarea.tsx 100% 50% 100% 100%
react-app/src/components/Inputs/toggle.tsx 100% 100% 100% 100%
react-app/src/components/Inputs/upload.utilities.ts 100% 80% 100% 100%
react-app/src/components/MaintenanceBanner/index.tsx 100% 100% 100% 100%
react-app/src/components/Opensearch/utils.ts 16.66% 0% 0% 18.91% 8-58, 62-73, 77-85, 89, 93-102, 108-116, 120-122
react-app/src/components/Opensearch/main/Filtering/FilterProvider.tsx 60% 100% 0% 60% 11-13
react-app/src/components/Opensearch/main/Filtering/index.tsx 14.28% 0% 0% 16.66% 13-35
react-app/src/components/Opensearch/main/Filtering/Chipbar/index.tsx 11.76% 0% 0% 13.79% 17-22, 31-36, 47-60, 72-116
react-app/src/components/Opensearch/main/Filtering/Drawer/hooks.ts 2.7% 0% 0% 3.07% 13-67, 71-177
react-app/src/components/Opensearch/main/Filtering/Drawer/index.tsx 50% 0% 0% 50% 20
react-app/src/components/Opensearch/main/Filtering/Drawer/Filterable/DateRange.tsx 0% 0% 0% 0% 29-237
react-app/src/components/Opensearch/main/Filtering/Export/index.tsx 18.18% 33.33% 50% 20% 29-61
react-app/src/components/Opensearch/main/Provider/index.tsx 100% 100% 0% 100%
react-app/src/components/Opensearch/main/Settings/Visibility.tsx 85.71% 83.33% 100% 100% 64
react-app/src/components/Opensearch/main/Table/index.tsx 8.33% 0% 0% 12.5% 13-72
react-app/src/components/Pagination/index.tsx 100% 100% 100% 100%
react-app/src/components/Popover/index.tsx 100% 100% 100% 100%
react-app/src/components/RHF/Field.tsx 100% 80% 100% 100%
react-app/src/components/RHF/FieldArray.tsx 100% 92.85% 100% 100%
react-app/src/components/RHF/FormGroup.tsx 100% 100% 100% 100%
react-app/src/components/RHF/Section.tsx 100% 100% 100% 100%
react-app/src/components/RHF/Slot.tsx 100% 91.66% 100% 100%
react-app/src/components/RHF/SlotField.tsx 71.42% 62.16% 60% 73.68% 89-91, 96-102, 159, 185
react-app/src/components/RHF/dependencyWrapper.tsx 58.92% 50% 72.72% 60.78% 7, 16, 21-46, 80-93, 100
react-app/src/components/RHF/tests/depedencyWrapper.test.tsx 88.23% 100% 77.77% 88.23% 54, 122
react-app/src/components/RHF/tests/initializer.test.tsx 100% 100% 100% 100%
react-app/src/components/RHF/utils/additionalRules.ts 61.42% 60.93% 53.33% 59.01% 7-29, 55, 108-137
react-app/src/components/RHF/utils/initializer.ts 100% 100% 100% 100%
react-app/src/components/RHF/utils/is.ts 52.63% 0% 0% 83.33% 18, 20, 22, 24, 26, 28, 31, 33, 36-41
react-app/src/components/RHF/utils/validator.ts 5.12% 0% 0% 6.06% 14-135, 139, 144-154, 157-163, 168-243, 246-253
react-app/src/components/Sheet/index.tsx 100% 0% 100% 100%
react-app/src/components/Table/index.tsx 100% 66.66% 100% 100%
react-app/src/components/Tooltip/index.tsx 100% 100% 100% 100%
react-app/src/features/dashboard/Lists/spas/consts.tsx 2.77% 0% 0% 3.03% 10-145
react-app/src/features/dashboard/Lists/waivers/consts.tsx 2.5% 0% 0% 2.77% 10-156
react-app/src/features/guides/index.tsx 100% 0% 0% 100%
react-app/src/features/package/hooks.tsx 8.33% 0% 0% 8.33% 11-40
react-app/src/features/package/index.tsx 25% 0% 0% 25% 24-30, 33, 62-81, 85, 100, 114-116
react-app/src/features/selection-flow/options.tsx 100% 100% 100% 100%
react-app/src/formSchemas/temporary-extension.ts 88.88% 100% 100% 88.88% 75-76
react-app/src/formSchemas/withdraw-package.ts 100% 80% 100% 100%
react-app/src/hooks/UseDebounce.test.tsx 100% 100% 100% 100%
react-app/src/hooks/useCountdown/index.test.ts 100% 100% 100% 100%
react-app/src/hooks/useCountdown/index.ts 91.66% 75% 100% 91.3% 31-32
react-app/src/hooks/useIdle/index.test.ts 100% 100% 100% 100%
react-app/src/hooks/useIdle/index.ts 95.23% 50% 88.88% 94.73% 44
react-app/src/utils/createContextProvider.ts 36.36% 0% 50% 36.36% 39-48
react-app/src/utils/crumbs.test.ts 100% 100% 100% 100%
react-app/src/utils/crumbs.ts 100% 100% 100% 100%
react-app/src/utils/formOrigin.test.ts 100% 100% 100% 100%
react-app/src/utils/formOrigin.ts 92.85% 81.25% 100% 92.85% 34-36
react-app/src/utils/location.ts 100% 100% 100% 100%
react-app/src/utils/stateName.test.ts 100% 100% 100% 100%
react-app/src/utils/stateNames.ts 100% 100% 100% 100%
react-app/src/utils/textHelpers.test.ts 100% 100% 100% 100%
react-app/src/utils/textHelpers.ts 100% 100% 100% 100%
react-app/src/utils/user.test.ts 100% 75% 100% 100%
react-app/src/utils/user.ts 100% 100% 100% 100%
react-app/src/utils/zod.test.ts 100% 100% 100% 100%
react-app/src/utils/zod.ts 100% 90% 100% 100%
react-app/src/utils/Poller/DataPoller.ts 100% 80% 100% 100%
react-app/src/utils/Poller/documentPoller.ts 100% 100% 100% 100%
react-app/src/utils/test-helpers/uploadFiles.ts 100% 100% 100% 100%
Generated in workflow #1522 for commit ea3a2ea by the Vitest Coverage Report Action

@tbolt tbolt temporarily deployed to add-prettier-app December 12, 2024 16:20 — with GitHub Actions Inactive
@tbolt tbolt temporarily deployed to add-prettier-kibana December 12, 2024 16:20 — with GitHub Actions Inactive
@tbolt tbolt changed the title adds prettier and related run scripts [do not merge] adds prettier and related run scripts Dec 13, 2024
Copy link
Contributor

🎉 This PR is included in version 1.5.0-val.108 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants