diff --git a/.github/ISSUE_TEMPLATE/provider-update.yml b/.github/ISSUE_TEMPLATE/provider-update.yml index a447cb940b..f3e3272c6f 100644 --- a/.github/ISSUE_TEMPLATE/provider-update.yml +++ b/.github/ISSUE_TEMPLATE/provider-update.yml @@ -19,11 +19,11 @@ body: label: Where is the issue? description: Where is the code/text that needs change/update? options: - - Install instruction - - qiskit.org - Transpile - - qiskit.org - Sample a Bell State - - qiskit.org - Run VQE - - Other (include where in the next field) + - Install instruction + - qiskit.org - Transpile + - qiskit.org - Sample a Bell State + - qiskit.org - Run VQE + - Other (include where in the next field) validations: required: true - type: textarea diff --git a/.github/workflows/brokenlink-check.yml b/.github/workflows/brokenlink-check.yml index 48fd8e30e9..3b4c3acfb1 100644 --- a/.github/workflows/brokenlink-check.yml +++ b/.github/workflows/brokenlink-check.yml @@ -12,4 +12,4 @@ jobs: uses: ruzickap/action-my-broken-link-checker@v2 with: url: https://qiskit.org - cmd_params: "--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --exclude=\"(https://qiskit.org/documentation|https://qiskit.org/ecosystem/.*|https://medium.com/Qiskit|https://qiskit.org/cdn-cgi/l/email-protection)\" --timeout=60" + cmd_params: '--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --exclude="(https://qiskit.org/documentation|https://qiskit.org/ecosystem/.*|https://medium.com/Qiskit|https://qiskit.org/cdn-cgi/l/email-protection)" --timeout=60' diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml index e0dc475e73..b71260b5c9 100644 --- a/.github/workflows/preview-deploy.yml +++ b/.github/workflows/preview-deploy.yml @@ -24,7 +24,7 @@ jobs: NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_CATEGORY: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_CATEGORY }} NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_INSTANCE_ID: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_INSTANCE_ID }} NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_KEY: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ANALYTICS_KEY_STAGING }} - NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ENABLED: 'true' + NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_ENABLED: "true" NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE }} NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE_TYPE: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_CODE_TYPE }} NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_TITLE: ${{ secrets.NUXT_PUBLIC_IBM_ANALYTICS_SEGMENT_PRODUCT_TITLE }} diff --git a/README.md b/README.md index 94d8ef257f..6bab3c4a47 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Qiskit is an open-source quantum computing software development framework for le - [🚀 Get Up and Running](#-get-up-and-running) - [💻 Technology Used](#-technology-used) - [🏭 Content Generation](#-content-generation) - - [🥸 Mocking content](#-mocking-content) + - [🥸 Mocking content](#-mocking-content) - [🏷️ Naming Conventions](#️-naming-conventions) - [Nuxt Components](#nuxt-components) - [✏️ How to Contribute](#️-how-to-contribute) @@ -69,9 +69,9 @@ Qiskit is an open-source quantum computing software development framework for le 3. **Create an .env file** - ```shell - cp .env.example .env - ``` +```shell +cp .env.example .env +``` 4. **Run a local server with hot reload at [localhost:3000](localhost:3000)** diff --git a/assets/scss/helpers/_classes.scss b/assets/scss/helpers/_classes.scss index 7688ca9ef7..3c1293a42a 100644 --- a/assets/scss/helpers/_classes.scss +++ b/assets/scss/helpers/_classes.scss @@ -6,7 +6,7 @@ $breakpoints: sm, md, lg, xlg, max; .hide-in-#{$breakpoint}, .hide-in-#{$breakpoint}::after { display: block; - + @include carbon.breakpoint-down($breakpoint) { display: none !important; } @@ -28,4 +28,4 @@ $breakpoints: sm, md, lg, xlg, max; display: none; } } -} \ No newline at end of file +} diff --git a/assets/scss/helpers/index.scss b/assets/scss/helpers/index.scss index 8cb52d0e86..9d948ab4e2 100644 --- a/assets/scss/helpers/index.scss +++ b/assets/scss/helpers/index.scss @@ -1,3 +1,3 @@ @forward "./variables"; @forward "./functions"; -@forward "./mixins"; \ No newline at end of file +@forward "./mixins"; diff --git a/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocates.vue b/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocates.vue index e4f89813a4..66a746c4e0 100644 --- a/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocates.vue +++ b/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocates.vue @@ -95,7 +95,7 @@ const filteredAdvocates = computed(() => { return noRegionFilters ? advocates : advocates.filter((advocate) => - regionFilters.value.includes(advocate.region) + regionFilters.value.includes(advocate.region), ); }); @@ -104,7 +104,7 @@ const isRegionFilterChecked = (filterValue: string): boolean => function updateRegionFilter(option: string, isChecked: boolean) { const filteredRegionFilters = regionFilters.value.filter( - (oldOption) => oldOption !== option + (oldOption) => oldOption !== option, ); if (isChecked) { diff --git a/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocatesCard.vue b/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocatesCard.vue index d86a4a60a8..1a4ead0cec 100644 --- a/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocatesCard.vue +++ b/components/Advocates/MeetTheAdvocates/AdvocatesMeetTheAdvocatesCard.vue @@ -48,7 +48,7 @@ const props = withDefaults(defineProps(), { const formattedRegion = computed(() => (props.region ? [props.region] : [])); const location = computed(() => - [props.city, props.country].filter((e) => !!e).join(", ") + [props.city, props.country].filter((e) => !!e).join(", "), ); diff --git a/components/EventsFallFest/EventsFallFestUniversityDirectory.vue b/components/EventsFallFest/EventsFallFestUniversityDirectory.vue index 2465aea974..9e693172b2 100644 --- a/components/EventsFallFest/EventsFallFestUniversityDirectory.vue +++ b/components/EventsFallFest/EventsFallFestUniversityDirectory.vue @@ -70,7 +70,7 @@ useSchemaOrg([ url: `${config.public.siteUrl}/fall-fest`, name: event.title, image: event.image, - }) + }), ), itemListOrder: "Ascending", numberOfItems: sortedEvents.length, diff --git a/components/Home/LeadSpace/HomeLeadSpaceBackgroundGrid.vue b/components/Home/LeadSpace/HomeLeadSpaceBackgroundGrid.vue index 29334acfd5..f13aa1a752 100644 --- a/components/Home/LeadSpace/HomeLeadSpaceBackgroundGrid.vue +++ b/components/Home/LeadSpace/HomeLeadSpaceBackgroundGrid.vue @@ -88,8 +88,8 @@ const positions = computed(() => } return generateRows(); - })() - ) + })(), + ), ); function getPosId(pos: CellSpecification): string { @@ -185,7 +185,10 @@ function getRowId(index: number): string { height: $large-cell - 1px; background-color: white; box-sizing: content-box; - transition: transform 300ms ease-in, opacity 300ms, border-radius 300ms; + transition: + transform 300ms ease-in, + opacity 300ms, + border-radius 300ms; @include carbon.breakpoint-down(lg) { width: $medium-cell - 1px; diff --git a/components/Ui/UiCodeSnippet.vue b/components/Ui/UiCodeSnippet.vue index 1774652caa..048322452f 100644 --- a/components/Ui/UiCodeSnippet.vue +++ b/components/Ui/UiCodeSnippet.vue @@ -102,7 +102,8 @@ function copyToClipboard(e: { target: any }) { &:focus { border-color: qiskit.$button-background-color-light; - box-shadow: inset 0 0 0 1px qiskit.$button-background-color-light, + box-shadow: + inset 0 0 0 1px qiskit.$button-background-color-light, inset 0 0 0 2px carbon.$white-0; } diff --git a/components/Ui/UiCta.vue b/components/Ui/UiCta.vue index d08372a4b4..d71ad245c1 100644 --- a/components/Ui/UiCta.vue +++ b/components/Ui/UiCta.vue @@ -122,7 +122,9 @@ const iconPerLinkType = computed(() => { background-size: 200% 100%; background-position-x: 100%; - transition: background-position-x 0.3s ease-out, color 0.3s ease-out; + transition: + background-position-x 0.3s ease-out, + color 0.3s ease-out; &_wider { width: 100%; diff --git a/composables/useScrollBetweenSections.ts b/composables/useScrollBetweenSections.ts index 85b703e23b..1cc9cb9be0 100644 --- a/composables/useScrollBetweenSections.ts +++ b/composables/useScrollBetweenSections.ts @@ -17,7 +17,7 @@ export function useScrollBetweenSections(): UseScrollBetweenSections { function onSectionAppearing( entries: | Array - | IntersectionObserverEntry[] + | IntersectionObserverEntry[], ) { let highestTopValue = Infinity; (entries as Array).forEach((entry) => { diff --git a/composables/useSegment.ts b/composables/useSegment.ts index d03d9f51e5..461b267065 100644 --- a/composables/useSegment.ts +++ b/composables/useSegment.ts @@ -40,7 +40,7 @@ function configureAnalytics( productCode: string, productCodeType: string, productTitle: string, - UT30: string + UT30: string, ) { window._analytics = { segment_key: key, @@ -98,7 +98,7 @@ function installAnalytics(url: string) { function trackPage( context: AnalyticsContext, routeName: string, - title: string + title: string, ) { const runtimeConfig = useRuntimeConfig(); const { bluemixAnalytics, digitalData } = context; @@ -133,7 +133,7 @@ function trackPage( function trackClickEvent( context: AnalyticsContext, cta: string, - location: string + location: string, ) { const runtimeConfig = useRuntimeConfig(); const { bluemixAnalytics, digitalData } = context; @@ -194,11 +194,11 @@ export const useSegment = () => { runtimeConfig.public.IBM_ANALYTICS_SEGMENT_PRODUCT_CODE, runtimeConfig.public.IBM_ANALYTICS_SEGMENT_PRODUCT_CODE_TYPE, runtimeConfig.public.IBM_ANALYTICS_SEGMENT_PRODUCT_TITLE, - runtimeConfig.public.IBM_ANALYTICS_SEGMENT_UT30 + runtimeConfig.public.IBM_ANALYTICS_SEGMENT_UT30, ); useState("analyticsReady", () => - installAnalytics(runtimeConfig.public.IBM_ANALYTICS_SEGMENT_SCRIPT_SRC) + installAnalytics(runtimeConfig.public.IBM_ANALYTICS_SEGMENT_SCRIPT_SRC), ); } diff --git a/content/fall-fest-events/fall-fest-extension-events.json b/content/fall-fest-events/fall-fest-extension-events.json index dfb4aff3ad..117ae379ed 100644 --- a/content/fall-fest-events/fall-fest-extension-events.json +++ b/content/fall-fest-events/fall-fest-extension-events.json @@ -71,4 +71,4 @@ "institution": "Rice University", "country": "United States" } -] \ No newline at end of file +] diff --git a/content/fall-fest-events/fall-fest-partner-events.json b/content/fall-fest-events/fall-fest-partner-events.json index ea7b33dc7a..af2520309b 100644 --- a/content/fall-fest-events/fall-fest-partner-events.json +++ b/content/fall-fest-events/fall-fest-partner-events.json @@ -82,4 +82,4 @@ }, "image": "/images/events/downloaded/recu4YP7eBA3IDUqB.jpg" } -] \ No newline at end of file +] diff --git a/hooks/advocate-conversion-utils.ts b/hooks/advocate-conversion-utils.ts index 4b9b557035..3bb5842921 100644 --- a/hooks/advocate-conversion-utils.ts +++ b/hooks/advocate-conversion-utils.ts @@ -26,7 +26,7 @@ class AdvocatesAirtableRecords extends AirtableRecords { "Advocates", "For website", undefined, - recordFields + recordFields, ); } diff --git a/hooks/airtable-conversion-utils.ts b/hooks/airtable-conversion-utils.ts index 083e64c402..4f25777d5d 100644 --- a/hooks/airtable-conversion-utils.ts +++ b/hooks/airtable-conversion-utils.ts @@ -37,7 +37,7 @@ class AirtableRecords { tableId: string, view: string, id?: string, - recordFields?: Record + recordFields?: Record, ) { this.apiKey = apiKey; this.tableId = tableId; @@ -93,7 +93,7 @@ class AirtableRecords { * @returns {Promise>} Field names mapped to keys */ public getAllFieldNames( - fieldIds: Record + fieldIds: Record, ): Promise> { const fieldNamesPromises = Object.entries(fieldIds).map( ([field, fieldId]) => { @@ -111,13 +111,16 @@ class AirtableRecords { console.error(`Error in setAllFieldNames: ${error}`); return { [field]: null }; }); - } + }, ); return Promise.all(fieldNamesPromises).then((results) => { - return results.reduce((acc, result) => { - return { ...acc, ...result }; - }, {} as Record); + return results.reduce( + (acc, result) => { + return { ...acc, ...result }; + }, + {} as Record, + ); }); } diff --git a/hooks/event-conversion-utils.ts b/hooks/event-conversion-utils.ts index cc94a2dd81..04d02d0df6 100644 --- a/hooks/event-conversion-utils.ts +++ b/hooks/event-conversion-utils.ts @@ -52,7 +52,7 @@ class EventsAirtableRecords extends AirtableRecords { constructor( apiKey: string, view: string, - recordFields?: Record + recordFields?: Record, ) { super( apiKey, @@ -60,10 +60,10 @@ class EventsAirtableRecords extends AirtableRecords { "Event Calendar", view, undefined, - recordFields + recordFields, ); this.airtableBase = new Airtable({ apiKey: this.apiKey }).base( - AIRTABLE_BASE_ID + AIRTABLE_BASE_ID, ); } @@ -75,7 +75,7 @@ class EventsAirtableRecords extends AirtableRecords { */ private sortEventsByStartDate( events: T[], - direction: "asc" | "desc" + direction: "asc" | "desc", ): T[] { return events.sort((a, b) => { const aDate = new Date(a.startDate); @@ -113,7 +113,7 @@ class EventsAirtableRecords extends AirtableRecords { */ isEventInDateRange( event: CommunityEvent | SeminarSeriesEvent, - days: number + days: number, ): boolean { const { startDate, endDate } = event; const today: Date = new Date(); @@ -184,12 +184,12 @@ class EventsAirtableRecords extends AirtableRecords { } } nextPage(); - } + }, ); const sortedCommunityEvents = this.sortEventsByStartDate( communityEvents, - days > 0 ? "asc" : "desc" + days > 0 ? "asc" : "desc", ); return Promise.resolve(sortedCommunityEvents); } @@ -212,9 +212,8 @@ class EventsAirtableRecords extends AirtableRecords { async (records, nextPage) => { for (const record of records) { this.id = record.id; - const seminarSeriesEvent = await this.convertToSeminarSeriesEvent( - record - ); + const seminarSeriesEvent = + await this.convertToSeminarSeriesEvent(record); if (typeof seminarSeriesEvent.to !== "undefined") { if (this.isEventInDateRange(seminarSeriesEvent, days)) { @@ -223,12 +222,12 @@ class EventsAirtableRecords extends AirtableRecords { } } nextPage(); - } + }, ); const sortedSeminarSeriesEvents = this.sortEventsByStartDate( seminarSeriesEvents, - days > 0 ? "asc" : "desc" + days > 0 ? "asc" : "desc", ); return Promise.resolve(sortedSeminarSeriesEvents); } @@ -239,7 +238,7 @@ class EventsAirtableRecords extends AirtableRecords { * @returns The converted CommunityEvent. */ async convertToCommunityEvent( - record: Record + record: Record, ): Promise { const event = { endDate: (record.get(this.recordFields!.endDate) as string) || "", @@ -258,7 +257,7 @@ class EventsAirtableRecords extends AirtableRecords { image: await this.getImage(record), startDate: this.getStartDate(record), startDateAndTime: this.formatTime( - record.get(this.recordFields!.startDateAndTime) || null + record.get(this.recordFields!.startDateAndTime) || null, ), types: this.getEventTypes(record), }; @@ -271,7 +270,7 @@ class EventsAirtableRecords extends AirtableRecords { * @returns The converted SeminarSeriesEvent. */ async convertToSeminarSeriesEvent( - record: Record + record: Record, ): Promise { const event = { endDate: record.get(this.recordFields!.endDate) || "", @@ -362,7 +361,7 @@ class EventsAirtableRecords extends AirtableRecords { const valueList = (Array.isArray(value) ? value : [value]) as string[]; const communityEventTypes = this.filterWithWhitelist( valueList, - COMMUNITY_EVENT_TYPE_OPTIONS + COMMUNITY_EVENT_TYPE_OPTIONS, ); const noTypes = communityEventTypes.length === 0; return noTypes ? [COMMUNITY_EVENT_TYPES.talks] : communityEventTypes; @@ -411,7 +410,7 @@ class EventsAirtableRecords extends AirtableRecords { * @returns The event's start and end dates. */ public getDates( - record: Record + record: Record, ): [Date | undefined, Date | undefined] { const recordStartDate = this.getStartDate(record); const recordEndDate = record.get(this.recordFields!.endDate) as diff --git a/hooks/fall-fest-extension-event-conversion.utils.ts b/hooks/fall-fest-extension-event-conversion.utils.ts index 3283f1eb61..863377fa52 100644 --- a/hooks/fall-fest-extension-event-conversion.utils.ts +++ b/hooks/fall-fest-extension-event-conversion.utils.ts @@ -12,7 +12,7 @@ class FallFestExtensionEventAirtableRecords extends AirtableRecords { constructor( apiKey: string, view: string, - recordFields?: Record + recordFields?: Record, ) { super( apiKey, @@ -20,10 +20,10 @@ class FallFestExtensionEventAirtableRecords extends AirtableRecords { "Extension Website", view, undefined, - recordFields + recordFields, ); this.airtableBase = new Airtable({ apiKey: this.apiKey }).base( - AIRTABLE_BASE_ID + AIRTABLE_BASE_ID, ); } @@ -64,7 +64,7 @@ class FallFestExtensionEventAirtableRecords extends AirtableRecords { */ // eslint-disable-next-line require-await async convertToExtensionEvent( - record: Record + record: Record, ): Promise { const event = { institution: (record.get(this.recordFields!.institution) as string) || "", diff --git a/hooks/fall-fest-partner-event-conversion.utils.ts b/hooks/fall-fest-partner-event-conversion.utils.ts index 43dec29cd6..be44f54a2b 100644 --- a/hooks/fall-fest-partner-event-conversion.utils.ts +++ b/hooks/fall-fest-partner-event-conversion.utils.ts @@ -19,7 +19,7 @@ class FallFestPartnerEventAirtableRecords extends AirtableRecords { constructor( apiKey: string, view: string, - recordFields?: Record + recordFields?: Record, ) { super( apiKey, @@ -27,10 +27,10 @@ class FallFestPartnerEventAirtableRecords extends AirtableRecords { "Partner Website", view, undefined, - recordFields + recordFields, ); this.airtableBase = new Airtable({ apiKey: this.apiKey }).base( - AIRTABLE_BASE_ID + AIRTABLE_BASE_ID, ); } @@ -70,7 +70,7 @@ class FallFestPartnerEventAirtableRecords extends AirtableRecords { * @returns The converted FallFestPartnerEvent. */ async convertToPartnerEvent( - record: Record + record: Record, ): Promise { const event = { title: this.getTitle(record), diff --git a/hooks/mock/content/advocates/advocates.json b/hooks/mock/content/advocates/advocates.json index 810bdf0454..68ff5926a6 100644 --- a/hooks/mock/content/advocates/advocates.json +++ b/hooks/mock/content/advocates/advocates.json @@ -3255,4 +3255,4 @@ "slackId": "s", "slackUsername": "Koby.Wuckert" } -] \ No newline at end of file +] diff --git a/hooks/mock/content/events/past-community-events.json b/hooks/mock/content/events/past-community-events.json index 69fe5fc10f..3619563602 100644 --- a/hooks/mock/content/events/past-community-events.json +++ b/hooks/mock/content/events/past-community-events.json @@ -1,15 +1,11 @@ [ { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "unde animi voluptatibus earum aut modi magni natus fugit quo", "image": "https://via.placeholder.com/512x512/fd9fca/4aefa7.gif?text=dolor%20ratione%20quasi", "location": "YouTube", "speaker": "Alfred Feest", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 16, 2023", "startDate": "2023-06-16", "startDateAndTime": null, @@ -18,16 +14,12 @@ "abstract": "Nostrum earum tempore quae officiis iure vitae voluptate harum. Incidunt quod possimus adipisci cumque amet voluptates cum. Voluptatem aperiam soluta veritatis quis." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "repudiandae explicabo qui eligendi eligendi nam", "image": "https://via.placeholder.com/512x512/67199d/fb2a42.jpeg?text=tenetur%20dolor%20repellat", "location": "Virtual", "speaker": "Mr. Vincent Mante II", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 15, 2023", "startDate": "2023-06-15", "startDateAndTime": "3:00 PM UTC", @@ -36,16 +28,12 @@ "abstract": "Maxime maxime a. Similique provident incidunt quaerat architecto soluta. Facere voluptates ducimus voluptas voluptatem amet debitis." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "ex ipsum odio doloremque occaecati a rerum ducimus possimus fugit eius aperiam voluptate aut", "image": "https://via.placeholder.com/512x512/cbfac4/acc0cf.jpg?text=vero%20inventore%20fugiat", "location": "Virtual", "speaker": "Ms. Mary Murray", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 12, 2023", "startDate": "2023-06-12", "startDateAndTime": "12:00 PM UTC", @@ -54,16 +42,12 @@ "abstract": "Mollitia exercitationem voluptatem nesciunt. Ut sit pariatur expedita cum. Veniam autem voluptatum reprehenderit inventore." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "aut recusandae fugiat in", "image": "https://via.placeholder.com/512x512/f41bfe/c4416a.jpg?text=doloribus%20cumque%20deleniti", "location": "YouTube", "speaker": "Wade Denesik", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 9, 2023", "startDate": "2023-06-09", "startDateAndTime": null, @@ -72,16 +56,12 @@ "abstract": "Eius alias adipisci officia ab architecto nostrum ad. Atque modi culpa quibusdam veniam iure eius. Et magni voluptatibus ullam dolore asperiores." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "illo eaque veritatis delectus numquam velit provident quos voluptate tenetur itaque fugiat omnis suscipit doloremque tempora pariatur suscipit nesciunt quaerat", "image": "https://via.placeholder.com/512x512/8b41a7/d9410a.png?text=assumenda%20veritatis%20odio", "location": "YouTube", "speaker": "Tabitha Funk", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 2, 2023", "startDate": "2023-06-02", "startDateAndTime": null, @@ -90,16 +70,12 @@ "abstract": "Qui vitae minus enim incidunt ipsam delectus voluptate eum. Molestias recusandae ipsam. Dolorem aut quam." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "minus assumenda architecto consequuntur", "image": "https://via.placeholder.com/512x512/e51517/4a6f5b.gif?text=repellat%20quo%20quaerat", "location": "Virtual", "speaker": "Caroline Feil", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 1, 2023", "startDate": "2023-06-01", "startDateAndTime": "3:00 PM UTC", @@ -108,16 +84,12 @@ "abstract": "Rem sed odio ex consequuntur rerum voluptatum porro. Reprehenderit consectetur ab optio eum non quo itaque quia. Doloribus minus reprehenderit reiciendis repellat quas." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "odit voluptatibus adipisci iusto dolor cupiditate magnam vero voluptates nisi amet quod pariatur vero alias possimus id", "image": "https://via.placeholder.com/512x512/be3558/e34b51.jpg?text=amet%20unde%20assumenda", "location": "Virtual", "speaker": "Toni Schowalter", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "May 22, 2023", "startDate": "2023-05-22", "startDateAndTime": "5:00 PM UTC", @@ -125,4 +97,4 @@ "to": "https://brilliant-yawl.biz", "abstract": "Quibusdam iusto adipisci saepe eveniet repudiandae beatae. Corporis doloremque neque ex. Dicta sed magnam corporis." } -] \ No newline at end of file +] diff --git a/hooks/mock/content/events/past-seminar-series-events.json b/hooks/mock/content/events/past-seminar-series-events.json index 94b004f2cf..f7393bede9 100644 --- a/hooks/mock/content/events/past-seminar-series-events.json +++ b/hooks/mock/content/events/past-seminar-series-events.json @@ -69,4 +69,4 @@ "speaker": "Dr. Ellen Mayert", "title": "porro quaerat adipisci minus officia ipsum illum omnis nulla cum aperiam fuga vero esse at molestiae molestias tenetur" } -] \ No newline at end of file +] diff --git a/hooks/mock/content/events/upcoming-community-events.json b/hooks/mock/content/events/upcoming-community-events.json index fbf0330cdd..cfaa8de135 100644 --- a/hooks/mock/content/events/upcoming-community-events.json +++ b/hooks/mock/content/events/upcoming-community-events.json @@ -1,15 +1,11 @@ [ { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "molestiae et vero maxime occaecati officia explicabo velit voluptates libero corrupti quisquam a consequuntur ut debitis dolorem", "image": "https://via.placeholder.com/512x512/d3210f/a68fb7.webp?text=ut%20error%20ipsam", "location": "YouTube", "speaker": "Beth Marks", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 23, 2023", "startDate": "2023-06-23", "startDateAndTime": null, @@ -18,16 +14,12 @@ "abstract": "Accusamus eos amet animi saepe quidem fugit veritatis ex eveniet. Consectetur saepe assumenda. Esse id unde quibusdam consequuntur minima aperiam dicta amet rem." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "necessitatibus magni rem consequuntur modi veniam quaerat", "image": "https://via.placeholder.com/512x512/ef4ee4/bd27c7.jpg?text=ipsam%20fuga%20ea", "location": "Virtual", "speaker": "Mildred Johns", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 26, 2023", "startDate": "2023-06-26", "startDateAndTime": "5:00 PM UTC", @@ -36,16 +28,12 @@ "abstract": "Quibusdam dolores tenetur exercitationem quis. Fuga dolores accusantium laboriosam rerum dolor et. Est voluptate quaerat." }, { - "types": [ - "Industry Event" - ], + "types": ["Industry Event"], "title": "iste omnis veniam itaque dolor", "image": "https://via.placeholder.com/512x512/9a40fa/0f63e7.jpeg?text=et%20accusantium%20dicta", "location": "Munich, Germany", "speaker": "Tracey Parker", - "regions": [ - "Europe" - ], + "regions": ["Europe"], "date": "June 27-30, 2023", "startDate": "2023-06-27", "startDateAndTime": null, @@ -54,16 +42,12 @@ "abstract": "Ratione eos rem. Quam reprehenderit debitis non. Laborum iure accusantium eius." }, { - "types": [ - "Hackathon" - ], + "types": ["Hackathon"], "title": "et non fugiat nam repellat reprehenderit officiis eaque laborum vitae", "image": "https://via.placeholder.com/512x512/7c1dff/fac0f9.webp?text=dolore%20ducimus%20culpa", "location": "Munich, Germany", "speaker": "Abel Altenwerth", - "regions": [ - "Europe" - ], + "regions": ["Europe"], "date": "June 27-28, 2023", "startDate": "2023-06-27", "startDateAndTime": null, @@ -72,16 +56,12 @@ "abstract": "Vero sequi eius voluptatem cupiditate recusandae tempore voluptas qui. Molestias fugiat placeat id nesciunt corporis. Sint aliquam pariatur impedit vel." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "eaque aliquam blanditiis quas quibusdam cupiditate magnam quod soluta architecto ex", "image": "https://via.placeholder.com/512x512/0bfdce/754aeb.jpg?text=aliquam%20distinctio%20nostrum", "location": "Virtual", "speaker": "Floyd Jacobson", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 29, 2023", "startDate": "2023-06-29", "startDateAndTime": "3:00 PM UTC", @@ -90,16 +70,12 @@ "abstract": "Veritatis soluta fugiat eveniet dolore minus fuga quaerat quas dolore. Nihil in hic. Sapiente provident similique laboriosam." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "saepe aut et exercitationem magni beatae dicta sint error neque non laudantium dicta excepturi reiciendis molestias dolores", "image": "https://via.placeholder.com/512x512/abe6ca/eedd67.png?text=vitae%20ducimus%20eligendi", "location": "YouTube", "speaker": "Dominic Ferry", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "June 30, 2023", "startDate": "2023-06-30", "startDateAndTime": null, @@ -108,16 +84,12 @@ "abstract": "Occaecati velit necessitatibus sit esse maiores nostrum eveniet. Itaque exercitationem aperiam reprehenderit impedit error eum nisi possimus eum. Impedit eos quia distinctio deleniti iusto distinctio minima cupiditate in." }, { - "types": [ - "Workshop" - ], + "types": ["Workshop"], "title": "tempora ipsam unde id", "image": "https://via.placeholder.com/512x512/ad7bf4/67bb2f.webp?text=sequi%20nemo%20adipisci", "location": "Virtual", "speaker": "Jay Waters", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 6, 2023", "startDate": "2023-07-06", "startDateAndTime": null, @@ -126,16 +98,12 @@ "abstract": "Soluta deserunt ipsum veniam odit at expedita possimus. Nulla praesentium maiores. Quaerat ea rem quo id consequatur repellat voluptates itaque itaque." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "nostrum veniam omnis sequi tempore eum sequi dolorem impedit facere quos commodi in expedita possimus", "image": "https://via.placeholder.com/512x512/cc55be/ccc7c8.gif?text=maxime%20perspiciatis%20quae", "location": "YouTube", "speaker": "Edith Effertz", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 7, 2023", "startDate": "2023-07-07", "startDateAndTime": null, @@ -144,16 +112,12 @@ "abstract": "Nesciunt tempore natus. Officiis atque fuga error illo optio iste architecto. Labore nostrum totam." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "suscipit rerum quam sed eos molestiae exercitationem sint enim quam ipsa fugiat sapiente", "image": "https://via.placeholder.com/512x512/9c76aa/7dddbb.png?text=ratione%20ex%20incidunt", "location": "Virtual", "speaker": "Bennie Johnston PhD", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 10, 2023", "startDate": "2023-07-10", "startDateAndTime": "12:00 PM UTC", @@ -162,16 +126,12 @@ "abstract": "Quasi voluptas similique sunt excepturi placeat maxime modi tempore quod. Numquam sunt animi quia suscipit officiis modi nemo similique. Dignissimos id delectus optio iusto." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "vel et earum quaerat aliquid soluta quam quae at libero sint culpa", "image": "https://via.placeholder.com/512x512/7ee2b6/e2e5ea.jpeg?text=iste%20asperiores%20itaque", "location": "Virtual", "speaker": "Geoffrey Purdy", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 13, 2023", "startDate": "2023-07-13", "startDateAndTime": "3:00 PM UTC", @@ -180,16 +140,12 @@ "abstract": "Iste minus facere ad. Vero voluptatibus eligendi rerum ea odit tenetur modi saepe. Possimus labore mollitia doloribus distinctio eligendi enim sunt temporibus necessitatibus." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "ipsa nesciunt non", "image": "https://via.placeholder.com/512x512/d36fcb/6d3ea7.jpg?text=facilis%20perferendis%20optio", "location": "YouTube", "speaker": "Calvin Reinger", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 14, 2023", "startDate": "2023-07-14", "startDateAndTime": null, @@ -198,18 +154,12 @@ "abstract": "Explicabo voluptatibus molestiae aperiam ab. Beatae fugit minus quam ratione autem magni repellat repellat. Facilis vitae reprehenderit eos libero dolor consequuntur animi eligendi expedita." }, { - "types": [ - "Challenge", - "Talks", - "Workshop" - ], + "types": ["Challenge", "Talks", "Workshop"], "title": "cum unde unde alias fugiat harum omnis veniam quaerat veniam voluptas ipsa dicta repudiandae minima eius", "image": "https://via.placeholder.com/512x512/fc07fa/d6eaca.webp?text=voluptatem%20ad%20ab", "location": "Virtual", "speaker": "Gilbert DuBuque", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 17-28, 2023", "startDate": "2023-07-17", "startDateAndTime": null, @@ -218,16 +168,12 @@ "abstract": "Inventore accusamus provident. Laudantium veritatis possimus suscipit vero quos eum eveniet cupiditate eligendi. Eos est distinctio quia totam sapiente unde commodi." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "soluta iste fugit qui animi ipsa quos quibusdam", "image": "https://via.placeholder.com/512x512/07f0ae/48d86e.png?text=enim%20illo%20magni", "location": "YouTube", "speaker": "Miss Beulah Cole", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 21, 2023", "startDate": "2023-07-21", "startDateAndTime": null, @@ -236,16 +182,12 @@ "abstract": "Soluta natus magnam minus enim alias a voluptatibus. Itaque dolor alias numquam cumque mollitia error. Facere tempore maxime maxime ducimus earum aperiam et a." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "ducimus dolor fugiat id optio qui", "image": "https://via.placeholder.com/512x512/f37069/dbb906.gif?text=laudantium%20sed%20accusantium", "location": "Virtual", "speaker": "Theresa Bode MD", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 24, 2023", "startDate": "2023-07-24", "startDateAndTime": "5:00 PM UTC", @@ -254,16 +196,12 @@ "abstract": "Eligendi maxime vitae eum. Eaque perspiciatis temporibus excepturi magnam suscipit aut soluta inventore. Quisquam sapiente fuga animi." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "reprehenderit odio", "image": "https://via.placeholder.com/512x512/d4ffbe/7fc6c8.jpg?text=esse%20ut%20repudiandae", "location": "Virtual", "speaker": "Bradford McKenzie", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 27, 2023", "startDate": "2023-07-27", "startDateAndTime": "3:00 PM UTC", @@ -272,16 +210,12 @@ "abstract": "Minus quod enim eum doloremque quidem culpa commodi necessitatibus. Suscipit optio iusto ullam. In harum tenetur ratione exercitationem assumenda aut nulla adipisci pariatur." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "reprehenderit minus iure commodi", "image": "https://via.placeholder.com/512x512/b389fd/5d25d5.gif?text=eveniet%20itaque%20consequuntur", "location": "YouTube", "speaker": "Dawn Herman", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "July 28, 2023", "startDate": "2023-07-28", "startDateAndTime": null, @@ -290,16 +224,12 @@ "abstract": "Provident temporibus accusantium nulla doloribus sunt natus. Repellat quam porro commodi repellendus distinctio accusamus. Excepturi id incidunt." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "molestiae aliquam rerum rerum deserunt maiores nobis minima amet", "image": "https://via.placeholder.com/512x512/c6d28d/a22caa.png?text=consequuntur%20quae%20labore", "location": "YouTube", "speaker": "Jermaine Rowe-Barrows", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "August 4, 2023", "startDate": "2023-08-04", "startDateAndTime": null, @@ -308,16 +238,12 @@ "abstract": "Quam occaecati ea dolorum eaque magnam. Earum amet dolorem quod tenetur iure natus assumenda cupiditate architecto. Facilis aliquid eaque." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "aliquid rerum ex asperiores error quasi eius dicta porro cum iusto sapiente iste dolore dolorum totam", "image": "https://via.placeholder.com/512x512/b58589/f7bc21.webp?text=perferendis%20nesciunt%20sit", "location": "Virtual", "speaker": "Bobbie Brown", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "August 10, 2023", "startDate": "2023-08-10", "startDateAndTime": "3:00 PM UTC", @@ -326,16 +252,12 @@ "abstract": "Quia hic aut optio distinctio. Ducimus dolorum aperiam neque perspiciatis quam consectetur facere error. Nesciunt asperiores at porro fuga ad quo." }, { - "types": [ - "Talks" - ], + "types": ["Talks"], "title": "facere consectetur perspiciatis vero dolorum unde vero blanditiis quos quas at", "image": "https://via.placeholder.com/512x512/050a5d/fb295b.gif?text=sunt%20pariatur%20impedit", "location": "YouTube", "speaker": "Dr. Alfredo Pfannerstill", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "August 11, 2023", "startDate": "2023-08-11", "startDateAndTime": null, @@ -344,16 +266,12 @@ "abstract": "Ducimus expedita magnam. Explicabo iste natus perspiciatis ex aperiam quidem. Dolor provident ullam similique expedita assumenda repudiandae voluptas excepturi aliquam." }, { - "types": [ - "Open Source" - ], + "types": ["Open Source"], "title": "facere facere doloremque iure ipsum possimus possimus", "image": "https://via.placeholder.com/512x512/acbe67/0ea32a.jpg?text=exercitationem%20quo%20ex", "location": "Virtual", "speaker": "Ms. Rosemary Lemke", - "regions": [ - "Online" - ], + "regions": ["Online"], "date": "August 14, 2023", "startDate": "2023-08-14", "startDateAndTime": "12:00 PM UTC", @@ -361,4 +279,4 @@ "to": "https://brief-matchmaker.info", "abstract": "Velit deleniti numquam nam consectetur illo ipsum. Nostrum quaerat qui alias. Atque blanditiis ad quis saepe deleniti." } -] \ No newline at end of file +] diff --git a/hooks/mock/content/events/upcoming-seminar-series-events.json b/hooks/mock/content/events/upcoming-seminar-series-events.json index dc94105f61..4683c2f0f8 100644 --- a/hooks/mock/content/events/upcoming-seminar-series-events.json +++ b/hooks/mock/content/events/upcoming-seminar-series-events.json @@ -49,4 +49,4 @@ "speaker": "Melody Hintz", "title": "cupiditate qui debitis ducimus soluta quia quam eveniet dolore vitae" } -] \ No newline at end of file +] diff --git a/hooks/mock/mock-service.ts b/hooks/mock/mock-service.ts index c3ca98c9a8..a74b80e731 100644 --- a/hooks/mock/mock-service.ts +++ b/hooks/mock/mock-service.ts @@ -17,7 +17,7 @@ export async function generateMocks() { */ async function copyFiles( sourceBasePath: string, - targetBasePath: string + targetBasePath: string, ): Promise { const dirContent = await fs.readdir(sourceBasePath, { withFileTypes: true }); diff --git a/hooks/update-events.ts b/hooks/update-events.ts index b9ce37e3d8..4e87df77f9 100644 --- a/hooks/update-events.ts +++ b/hooks/update-events.ts @@ -4,7 +4,7 @@ import { writeJSONToFile } from "./utils/conversion-utils"; export default async function (apiKey: string, outputFolder: string) { const communityEventsAirtableRecords = new EventsAirtableRecords( apiKey, - "Add to Event Site" + "Add to Event Site", ); const upcomingCommunityEvents = await communityEventsAirtableRecords.fetchCommunityEvents(62); @@ -13,7 +13,7 @@ export default async function (apiKey: string, outputFolder: string) { const seminarSeriesEventsAirtableRecords = new EventsAirtableRecords( apiKey, - "Seminar Series ONLY" + "Seminar Series ONLY", ); const upcomingSeminarSeriesEvents = await seminarSeriesEventsAirtableRecords.fetchSeminarSeriesEvents(31); @@ -41,7 +41,7 @@ export default async function (apiKey: string, outputFolder: string) { await Promise.all( eventsAndOutputFilename.map((curr) => - writeJSONToFile(outputFolder, curr.outputFilename, curr.events) - ) + writeJSONToFile(outputFolder, curr.outputFilename, curr.events), + ), ); } diff --git a/hooks/update-fall-fest-events.ts b/hooks/update-fall-fest-events.ts index 4ba863cdd6..7bc2ae8cee 100644 --- a/hooks/update-fall-fest-events.ts +++ b/hooks/update-fall-fest-events.ts @@ -10,7 +10,7 @@ export default async function (apiKey: string, outputFolder: string) { const partnerEventsAirtableRecords = new FallFestPartnerEventAirtableRecords( apiKey, - "Website view" + "Website view", ); const fallFestPartnerEvents = await partnerEventsAirtableRecords.fetchPartnerEvents(); @@ -28,7 +28,7 @@ export default async function (apiKey: string, outputFolder: string) { await Promise.all( fallFestEventsOutputAndFilename.map((curr) => - writeJSONToFile(outputFolder, curr.outputFilename, curr.events) - ) + writeJSONToFile(outputFolder, curr.outputFilename, curr.events), + ), ); } diff --git a/hooks/utils/conversion-utils.ts b/hooks/utils/conversion-utils.ts index 9779f03ee1..c4d700c282 100644 --- a/hooks/utils/conversion-utils.ts +++ b/hooks/utils/conversion-utils.ts @@ -4,7 +4,7 @@ import path from "path"; export async function writeJSONToFile( outputFolder: string, filename: string, - data: any + data: any, ) { const folderExists = await exists(outputFolder); if (!folderExists) { diff --git a/nuxt.config.ts b/nuxt.config.ts index 31381f6a71..7730dad732 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -102,7 +102,7 @@ async function generateContent() { console.info("Generating the fall fest events content..."); await fetchFallFestEvents( AIRTABLE_ACCESS_TOKEN, - "./content/fall-fest-events" + "./content/fall-fest-events", ); // eslint-disable-next-line no-console @@ -111,7 +111,7 @@ async function generateContent() { } else { // eslint-disable-next-line no-console console.warn( - "No AIRTABLE_ACCESS_TOKEN environment variable found. Skipping content generation." + "No AIRTABLE_ACCESS_TOKEN environment variable found. Skipping content generation.", ); } } diff --git a/package-lock.json b/package-lock.json index 3c7e98fd5e..6db84192e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,13 +26,13 @@ "axios": "^1.4.0", "cross-env": "^7.0.3", "eslint": "^8.56.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.2", "eslint-plugin-vue": "^9.17.0", "lodash": "^4.17.21", "nuxt": "^3.6.5", "nuxt-schema-org": "^2.2.0", - "prettier": "^2.8.8", + "prettier": "^3.1.1", "sass": "^1.63.6", "stylelint": "^15.10.1", "stylelint-config-recommended-vue": "^1.4.0", @@ -2016,19 +2016,11 @@ "eslint": "^8.23.0" } }, - "node_modules/@pkgr/utils": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", - "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "node_modules/@pkgr/core": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.0.tgz", + "integrity": "sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ==", "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "fast-glob": "^3.3.0", - "is-glob": "^4.0.3", - "open": "^9.1.0", - "picocolors": "^1.0.0", - "tslib": "^2.6.0" - }, "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, @@ -2036,36 +2028,6 @@ "url": "https://opencollective.com/unts" } }, - "node_modules/@pkgr/utils/node_modules/define-lazy-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@pkgr/utils/node_modules/open": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", - "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", - "dev": true, - "dependencies": { - "default-browser": "^4.0.0", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "is-wsl": "^2.2.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@qiskit/web-components": { "version": "0.15.4", "resolved": "https://registry.npmjs.org/@qiskit/web-components/-/web-components-0.15.4.tgz", @@ -3843,15 +3805,6 @@ } ] }, - "node_modules/big-integer": { - "version": "1.6.51", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", - "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -3887,18 +3840,6 @@ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", "dev": true }, - "node_modules/bplist-parser": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", - "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", - "dev": true, - "dependencies": { - "big-integer": "^1.6.44" - }, - "engines": { - "node": ">= 5.10.0" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -4013,21 +3954,6 @@ "semver": "^7.0.0" } }, - "node_modules/bundle-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", - "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", - "dev": true, - "dependencies": { - "run-applescript": "^5.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/c12": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/c12/-/c12-1.5.1.tgz", @@ -5030,40 +4956,6 @@ "node": ">=0.10.0" } }, - "node_modules/default-browser": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", - "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", - "dev": true, - "dependencies": { - "bundle-name": "^3.0.0", - "default-browser-id": "^3.0.0", - "execa": "^7.1.1", - "titleize": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser-id": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", - "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", - "dev": true, - "dependencies": { - "bplist-parser": "^0.2.0", - "untildify": "^4.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/define-lazy-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", @@ -5668,9 +5560,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", - "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==", + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -5980,21 +5872,30 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.2.tgz", + "integrity": "sha512-dhlpWc9vOwohcWmClFcA+HjlvUpuyynYs0Rf+L/P6/0iQE6vlHW9l5bkfzN62/Stm9fbq8ku46qzde76T1xlSg==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.6" }, "engines": { - "node": ">=12.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-plugin-prettier" }, "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "eslint-config-prettier": "*", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } @@ -7882,39 +7783,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", - "dev": true, - "dependencies": { - "is-docker": "^3.0.0" - }, - "bin": { - "is-inside-container": "cli.js" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-inside-container/node_modules/is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", @@ -11561,15 +11429,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -12488,110 +12356,6 @@ "node": ">=12" } }, - "node_modules/run-applescript": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", - "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", - "dev": true, - "dependencies": { - "execa": "^5.0.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/run-applescript/node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/run-applescript/node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/run-applescript/node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/run-applescript/node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/run-applescript/node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -13871,13 +13635,13 @@ } }, "node_modules/synckit": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", - "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", "dev": true, "dependencies": { - "@pkgr/utils": "^2.3.1", - "tslib": "^2.5.0" + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -14090,18 +13854,6 @@ "node": ">=14.0.0" } }, - "node_modules/titleize": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", - "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -14194,9 +13946,9 @@ } }, "node_modules/tslib": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", - "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", "dev": true }, "node_modules/tsutils": { @@ -14780,15 +14532,6 @@ "node": "14 || >=16.14" } }, - "node_modules/untildify": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", - "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/untyped": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/untyped/-/untyped-1.4.0.tgz", diff --git a/package.json b/package.json index 2586e7028f..3161736b04 100644 --- a/package.json +++ b/package.json @@ -41,13 +41,13 @@ "axios": "^1.4.0", "cross-env": "^7.0.3", "eslint": "^8.56.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.2", "eslint-plugin-vue": "^9.17.0", "lodash": "^4.17.21", "nuxt": "^3.6.5", "nuxt-schema-org": "^2.2.0", - "prettier": "^2.8.8", + "prettier": "^3.1.1", "sass": "^1.63.6", "stylelint": "^15.10.1", "stylelint-config-recommended-vue": "^1.4.0", diff --git a/pages/events/index.vue b/pages/events/index.vue index e6e0e6423a..58fc6564e5 100644 --- a/pages/events/index.vue +++ b/pages/events/index.vue @@ -175,10 +175,10 @@ const typeFilters = ref([]); const showCalendar = computed(() => activeSet.value === "calendar"); const showUpcomingEvents = computed(() => activeSet.value === "upcoming"); const events = computed(() => - showUpcomingEvents.value ? upcomingEvents : pastEvents + showUpcomingEvents.value ? upcomingEvents : pastEvents, ); const noRegionFiltersSelected = computed( - () => regionFilters.value.length === 0 + () => regionFilters.value.length === 0, ); const noTypeFiltersSelected = computed(() => typeFilters.value.length === 0); @@ -198,7 +198,7 @@ const filteredEvents = computed(() => { const eventsAfterApplyTypeFilter = filterBy( events.value, typeFilters.value, - "types" + "types", ); return filterBy(eventsAfterApplyTypeFilter, regionFilters.value, "regions"); @@ -206,7 +206,7 @@ const filteredEvents = computed(() => { function filterBy( allEvents: CommunityEvent[], selectedFilters: string[], - propToFilter: keyof CommunityEvent + propToFilter: keyof CommunityEvent, ) { return allEvents.filter((event) => { const propValue = event[propToFilter] || []; @@ -294,7 +294,7 @@ useSchemaOrg([ image: event.image, performer: event.speaker, endDate: event.endDate ? new Date(event.endDate) : undefined, - }) + }), ), itemListOrder: "Ascending", numberOfItems: sortedEvents.length, diff --git a/pages/events/seminar-series.vue b/pages/events/seminar-series.vue index 990afc3baf..2be3dc5e10 100644 --- a/pages/events/seminar-series.vue +++ b/pages/events/seminar-series.vue @@ -220,11 +220,11 @@ const seminarSeriesDataTableColumns = [ ]; const upcomingEventsDataTable = dataPerRow( upcomingSeminarSerieEvents, - "upcoming-events-section" + "upcoming-events-section", ); const pastEventsDataTable = dataPerRow( pastSeminarSeriesEvents, - "past-events-section" + "past-events-section", ); // Data for the helpful resources section @@ -289,7 +289,7 @@ function isAppCtaComponent(component: string): boolean { function dataPerRow( events: SeminarSeriesEvent[], - eventsSection: string + eventsSection: string, ): TableRowElement[][] { return events.map((event) => [ { @@ -337,7 +337,7 @@ useSchemaOrg([ image: event.image, performer: event.speaker, endDate: event.endDate ? new Date(event.endDate) : undefined, - }) + }), ), itemListOrder: "Ascending", numberOfItems: sortedEvents.length, diff --git a/pages/index.vue b/pages/index.vue index a892bb8375..9679a4dee6 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -92,7 +92,7 @@ useSeoMeta({ }); const { data: packageInfo } = await useAsyncData(() => - $fetch("https://pypi.org/pypi/qiskit/json") + $fetch("https://pypi.org/pypi/qiskit/json"), ); const qiskitVersion = packageInfo.value?.info.version ?? ""; diff --git a/plugins/trackClick.ts b/plugins/trackClick.ts index 49d0ebc345..f6cee3967f 100644 --- a/plugins/trackClick.ts +++ b/plugins/trackClick.ts @@ -13,7 +13,7 @@ export default defineNuxtPlugin((nuxtApp) => { "click", () => binding.value && - trackClickEvent(binding.value.cta, binding.value.location) + trackClickEvent(binding.value.cta, binding.value.location), ); }, }); diff --git a/tests/hooks/advocate-conversion-utils.spec.ts b/tests/hooks/advocate-conversion-utils.spec.ts index d52eaa273d..853338cde3 100644 --- a/tests/hooks/advocate-conversion-utils.spec.ts +++ b/tests/hooks/advocate-conversion-utils.spec.ts @@ -8,7 +8,7 @@ class FakeAdvocatesAirtableRecords extends AdvocatesAirtableRecords { constructor( apiKey: string, airtableBase: AirtableBase, - public recordFields?: Record + public recordFields?: Record, ) { super(apiKey, recordFields); this.airtableBase = airtableBase; @@ -46,7 +46,7 @@ describe("getters", () => { beforeEach(() => { advocatesAirtableRecords = new AdvocatesAirtableRecords( "testApiKey", - mockRecordFields + mockRecordFields, ); }); @@ -60,19 +60,19 @@ describe("getters", () => { test("gets the region from the record", () => { expect(advocatesAirtableRecords.getRegion(fakeRecord)).toBe( - "South America" + "South America", ); }); test("gets the Slack ID from the record", () => { expect(advocatesAirtableRecords.getSlackId(fakeRecord)).toBe( - "ID1234567890" + "ID1234567890", ); }); test("gets the Slack username from the record", () => { expect(advocatesAirtableRecords.getSlackUsername(fakeRecord)).toBe( - "U1234567890" + "U1234567890", ); }); }); @@ -111,14 +111,13 @@ describe("convertToAdvocate", () => { beforeEach(() => { advocatesAirtableRecords = new AdvocatesAirtableRecords( "testApiKey", - mockRecordFields + mockRecordFields, ); }); test("converts the record to an advocate object", async () => { - const advocate = await advocatesAirtableRecords.convertToAdvocate( - fakeRecord - ); + const advocate = + await advocatesAirtableRecords.convertToAdvocate(fakeRecord); expect(advocate).toEqual({ name: "Nova", @@ -142,7 +141,7 @@ describe("getImage", () => { beforeEach(() => { advocatesAirtableRecords = new AdvocatesAirtableRecords( "testApiKey", - mockRecordFields + mockRecordFields, ); }); @@ -288,7 +287,7 @@ describe("fetchAdvocates", () => { const advocatesAirtableRecords = new FakeAdvocatesAirtableRecords( "testApiKey", airtableBase as unknown as AirtableBase, - mockRecordFields + mockRecordFields, ); const result = await advocatesAirtableRecords.fetchAdvocates(); @@ -324,7 +323,7 @@ describe("fetchAdvocates", () => { test("gets record fields from `getAllFieldNames` if there are none yet", async () => { const advocatesAirtableRecords = new FakeAdvocatesAirtableRecords( "testApiKey", - airtableBase as unknown as AirtableBase + airtableBase as unknown as AirtableBase, ); advocatesAirtableRecords.getAllFieldNames = vi @@ -334,10 +333,10 @@ describe("fetchAdvocates", () => { await advocatesAirtableRecords.fetchAdvocates(); expect(advocatesAirtableRecords.getAllFieldNames).toBeCalledWith( - RECORD_FIELDS_IDS + RECORD_FIELDS_IDS, ); expect(advocatesAirtableRecords.recordFields).toStrictEqual( - mockRecordFields + mockRecordFields, ); }); }); diff --git a/tests/hooks/airtable-conversion-utils.spec.ts b/tests/hooks/airtable-conversion-utils.spec.ts index 9a565f12af..241b415eb5 100644 --- a/tests/hooks/airtable-conversion-utils.spec.ts +++ b/tests/hooks/airtable-conversion-utils.spec.ts @@ -8,7 +8,7 @@ class FakeAirtableRecords extends AirtableRecords { constructor( apiKey: string, airtableBase: AirtableBase, - public recordFields?: Record + public recordFields?: Record, ) { super(apiKey, "testBaseId", "testTableId", "testView"); this.airtableBase = airtableBase; @@ -37,7 +37,7 @@ describe("storeImage", () => { "testBaseId", "testTableId", "testView", - id + id, ); vi.spyOn(axios, "get"); }); @@ -52,7 +52,7 @@ describe("storeImage", () => { const mockWriteFile = vi.spyOn(fsPromises, "writeFile").mockResolvedValue(); await expect( - airtableRecords.storeImage(imageUrl, imageFilePath) + airtableRecords.storeImage(imageUrl, imageFilePath), ).resolves.not.toThrow(); expect(mockWriteFile).toHaveBeenCalledWith(imageFilePath, mockImageBuffer); }); @@ -60,7 +60,7 @@ describe("storeImage", () => { test("should throw error when image URL is invalid", async () => { vi.spyOn(axios, "get").mockRejectedValue(new Error("Invalid image URL")); await expect( - airtableRecords.storeImage("invalidImageUrl", imageFilePath) + airtableRecords.storeImage("invalidImageUrl", imageFilePath), ).rejects.toThrowError("Invalid image URL"); }); @@ -72,7 +72,7 @@ describe("storeImage", () => { data: Buffer.from("imageData"), }); await expect( - airtableRecords.storeImage(imageUrl, imageFilePath) + airtableRecords.storeImage(imageUrl, imageFilePath), ).rejects.toThrowError("File system error"); }); @@ -142,7 +142,7 @@ describe("storeImage", () => { .mockImplementation( (cb: (records: any, nextPage: any) => void): void => { cb(fakeRecords, () => {}); - } + }, ); const airtableSelectMockFn = vi.fn().mockReturnValue({ eachPage: airtableEachPageMockFn, @@ -154,7 +154,7 @@ describe("storeImage", () => { const airtableRecords = new FakeAirtableRecords( "testApiKey", airtableBase as unknown as AirtableBase, - mockRecordFields + mockRecordFields, ); // eslint-disable-next-line dot-notation @@ -207,10 +207,10 @@ describe("storeImage", () => { cb( // two elements to check the for loop in `getFieldName` [element], - () => {} + () => {}, ); return Promise.resolve(); - } + }, ); const airtableBase = vi.fn().mockReturnValue({ @@ -228,7 +228,7 @@ describe("storeImage", () => { const airtableRecords = new FakeAirtableRecords( "testApiKey", airtableBase as unknown as AirtableBase, - mockRecordFields + mockRecordFields, ); const result = await airtableRecords.getAllFieldNames(RECORD_FIELDS_IDS); @@ -265,10 +265,10 @@ describe("storeImage", () => { cb( // two elements to check the for loop in `getFieldName` records, - () => {} + () => {}, ); return Promise.resolve(); - } + }, ); const airtableBase = vi.fn().mockReturnValue({ @@ -282,7 +282,7 @@ describe("storeImage", () => { const airtableRecords = new FakeAirtableRecords( "testApiKey", airtableBase as unknown as AirtableBase, - mockRecordFields + mockRecordFields, ); const result = await airtableRecords.getAllFieldNames(RECORD_FIELDS_IDS); diff --git a/tests/hooks/event-conversion-utils.spec.ts b/tests/hooks/event-conversion-utils.spec.ts index 390fac57a8..66c03a7b2a 100644 --- a/tests/hooks/event-conversion-utils.spec.ts +++ b/tests/hooks/event-conversion-utils.spec.ts @@ -19,7 +19,7 @@ class FakeEventsAirtableRecords extends EventsAirtableRecords { apiKey: string, view: string, airtableBase?: AirtableBase, - public recordFields?: Record + public recordFields?: Record, ) { super(apiKey, view, recordFields); if (airtableBase) { @@ -72,7 +72,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - false + false, ); // Event starts within the next 15 days @@ -84,7 +84,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - true + true, ); // Event starts today @@ -96,7 +96,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - true + true, ); // Event starts within the next 15 days and ends after 15 days @@ -108,7 +108,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - true + true, ); // Event starts in exactly 15 days @@ -120,7 +120,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - true + true, ); // Event started 100 days ago and end in 100 days (ongoing event) @@ -132,7 +132,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - true + true, ); }); @@ -148,7 +148,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - false + false, ); // Event started before the last 15 days and ended within the last 15 days @@ -160,7 +160,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - true + true, ); // Event starts in the future @@ -172,7 +172,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - false + false, ); // Event starts today @@ -184,7 +184,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - false + false, ); // Event started 100 days ago and end in 100 days (ongoing event) @@ -196,7 +196,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - false + false, ); }); @@ -212,7 +212,7 @@ describe("isEventInDateRange", () => { speaker: "", }; expect(eventsAirtableRecords.isEventInDateRange(mockEvent, days)).toBe( - false + false, ); }); }); @@ -277,7 +277,7 @@ describe("convertToCommunityEvent", () => { eventsAirtableRecords = new EventsAirtableRecords( "testApiKey", "testView", - mockRecordFields + mockRecordFields, ); }); @@ -285,7 +285,7 @@ describe("convertToCommunityEvent", () => { const { hackathon } = COMMUNITY_EVENT_TYPES; const { europe } = WORLD_REGIONS; const event = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecords[0] + fakeRecords[0], ); expect(event).toStrictEqual({ @@ -306,7 +306,7 @@ describe("convertToCommunityEvent", () => { test("extracts and formats information from the record when `types` is not an array", async () => { const event2 = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecords[1] + fakeRecords[1], ); expect(event2).toStrictEqual({ @@ -337,7 +337,7 @@ describe("convertToCommunityEvent types", () => { eventsAirtableRecords = new EventsAirtableRecords( "testApiKey", "testView", - mockRecordFields + mockRecordFields, ); }); @@ -351,9 +351,8 @@ describe("convertToCommunityEvent types", () => { }, }; - const { types } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { types } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ types }).toEqual({ types: [COMMUNITY_EVENT_TYPES.hackathon], @@ -370,9 +369,8 @@ describe("convertToCommunityEvent types", () => { }, }; - const { types } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { types } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ types }).toEqual({ types: [COMMUNITY_EVENT_TYPES.talks], @@ -389,9 +387,8 @@ describe("convertToCommunityEvent types", () => { }, }; - const { types } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { types } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ types }).toEqual({ types: [COMMUNITY_EVENT_TYPES.talks], @@ -408,9 +405,8 @@ describe("convertToCommunityEvent types", () => { }, }; - const { types } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { types } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ types }).toEqual({ types: [COMMUNITY_EVENT_TYPES.hackathon], @@ -421,12 +417,12 @@ describe("convertToCommunityEvent types", () => { describe("filterByWhitelist", () => { const eventsAirtableRecords = new EventsAirtableRecords( "testApiKey", - "testView" + "testView", ); test("creates a new list, from an input one, only with the values in a whitelist", () => { const list = ["a", "x", "b", "y", "c", "z", "a", "x", "b", "y"]; expect( - eventsAirtableRecords.filterWithWhitelist(list, ["a", "b", "c"]) + eventsAirtableRecords.filterWithWhitelist(list, ["a", "b", "c"]), ).toEqual(["a", "b", "c", "a", "b"]); }); }); @@ -442,7 +438,7 @@ describe("convertToCommunityEvent regions", () => { eventsAirtableRecords = new EventsAirtableRecords( "testApiKey", "testView", - mockRecordFields + mockRecordFields, ); }); @@ -456,9 +452,8 @@ describe("convertToCommunityEvent regions", () => { }, }; - const { regions } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { regions } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ regions }).toEqual({ regions: [WORLD_REGIONS.tbd], @@ -475,9 +470,8 @@ describe("convertToCommunityEvent regions", () => { }, }; - const { regions } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { regions } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ regions }).toEqual({ regions: [WORLD_REGIONS.northAmerica], @@ -494,9 +488,8 @@ describe("convertToCommunityEvent regions", () => { }, }; - const { regions } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { regions } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ regions }).toEqual({ regions: ["Lemuria"], @@ -515,7 +508,7 @@ describe("convertToCommunityEvent location", () => { eventsAirtableRecords = new EventsAirtableRecords( "testApiKey", "testView", - mockRecordFields + mockRecordFields, ); }); @@ -529,9 +522,8 @@ describe("convertToCommunityEvent location", () => { }, }; - const { location } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { location } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ location }).toEqual({ location: WORLD_REGIONS.tbd, @@ -548,9 +540,8 @@ describe("convertToCommunityEvent location", () => { }, }; - const { location } = await eventsAirtableRecords.convertToCommunityEvent( - fakeRecord - ); + const { location } = + await eventsAirtableRecords.convertToCommunityEvent(fakeRecord); expect({ location }).toEqual({ location: "Gotham", @@ -570,7 +561,7 @@ describe("getImage", () => { eventsAirtableRecords = new EventsAirtableRecords( "testApiKey", "testView", - mockRecordFields + mockRecordFields, ); }); @@ -701,7 +692,7 @@ describe("getDates", () => { eventsAirtableRecords = new EventsAirtableRecords( "testApiKey", "testView", - mockRecordFields + mockRecordFields, ); }); @@ -783,7 +774,7 @@ describe("formatDates", () => { test("shows start date when start and end dates are equal", () => { expect(eventsAirtableRecords.formatDates(start, endSameDate)).toBe( - "January 1, 2020" + "January 1, 2020", ); }); @@ -793,13 +784,13 @@ describe("formatDates", () => { test("shows complete dates when the years are different", () => { expect(eventsAirtableRecords.formatDates(start, endNextYear)).toBe( - "January 1, 2020 - January 1, 2021" + "January 1, 2020 - January 1, 2021", ); }); test("factors out the year when years are equal", () => { expect(eventsAirtableRecords.formatDates(start, endNextMonth)).toBe( - "January 1 - February 1, 2020" + "January 1 - February 1, 2020", ); }); @@ -807,11 +798,11 @@ describe("formatDates", () => { try { eventsAirtableRecords.formatDates( new Date("2020-01-01T00:00:00.000Z"), - new Date("2020-01-01T00:10:00.000Z") + new Date("2020-01-01T00:10:00.000Z"), ); } catch (e) { expect((e as any).message).toBe( - "Unreachable: should have been covered by a case." + "Unreachable: should have been covered by a case.", ); } }); @@ -827,7 +818,7 @@ describe("getEventsQuery", () => { const eventsAirtableRecords = new FakeEventsAirtableRecords( "testApiKey", "testView", - airtableBase as unknown as AirtableBase + airtableBase as unknown as AirtableBase, ); eventsAirtableRecords.getEventsQuery("filter"); @@ -898,12 +889,12 @@ describe("fetchCommunityEvents", () => { "testApiKey", "testView", undefined, - mockRecordFields + mockRecordFields, ); const getEventsQueryMock = vi.fn().mockReturnValue({ eachPage: async ( - callBack: (records: any, nextPage: any) => Promise + callBack: (records: any, nextPage: any) => Promise, ) => { await callBack(fakeRecords, () => {}); @@ -953,12 +944,12 @@ describe("fetchCommunityEvents", () => { "testApiKey", "testView", undefined, - mockRecordFields + mockRecordFields, ); const getEventsQueryMock = vi.fn().mockReturnValue({ eachPage: async ( - callBack: (records: any, nextPage: any) => Promise + callBack: (records: any, nextPage: any) => Promise, ) => { await callBack(fakeRecords, () => {}); @@ -1006,7 +997,7 @@ describe("fetchCommunityEvents", () => { test("If no recordFields should get from getAllFieldNames", async () => { const eventsAirtableRecords = new FakeEventsAirtableRecords( "testApiKey", - "testView" + "testView", ); const getEventsQueryMock = vi.fn().mockReturnValue({ @@ -1059,12 +1050,12 @@ describe("fetchSeminarSeriesEvents", () => { "testApiKey", "testView", undefined, - mockRecordFields + mockRecordFields, ); const getEventsQueryMock = vi.fn().mockReturnValue({ eachPage: async ( - callBack: (records: any, nextPage: any) => Promise + callBack: (records: any, nextPage: any) => Promise, ) => { await callBack(fakeRecords, () => {}); @@ -1113,12 +1104,12 @@ describe("fetchSeminarSeriesEvents", () => { "testApiKey", "testView", undefined, - mockRecordFields + mockRecordFields, ); const getEventsQueryMock = vi.fn().mockReturnValue({ eachPage: async ( - callBack: (records: any, nextPage: any) => Promise + callBack: (records: any, nextPage: any) => Promise, ) => { await callBack(fakeRecords, () => {}); @@ -1165,7 +1156,7 @@ describe("fetchSeminarSeriesEvents", () => { test("gets record fields from `getAllFieldNames` if there are none yet", async () => { const eventsAirtableRecords = new FakeEventsAirtableRecords( "testApiKey", - "testView" + "testView", ); const getEventsQueryMock = vi.fn().mockReturnValue({ @@ -1191,7 +1182,7 @@ describe("fetchSeminarSeriesEvents", () => { "testApiKey", "testView", undefined, - {} + {}, ); const seminarEvent = @@ -1216,7 +1207,7 @@ describe("formatTime", () => { test("formats date", () => { const eventsAirtableRecords = new FakeEventsAirtableRecords( "testApiKey", - "testView" + "testView", ); eventsAirtableRecords.recordFields = {}; diff --git a/tests/hooks/utils/conversion-utils.spec.ts b/tests/hooks/utils/conversion-utils.spec.ts index d6a65a9e11..9651b622f2 100644 --- a/tests/hooks/utils/conversion-utils.spec.ts +++ b/tests/hooks/utils/conversion-utils.spec.ts @@ -47,7 +47,7 @@ describe("writeJSONToFile", () => { expect(fs.promises.mkdir).toBeCalledWith(folder); expect(fs.promises.writeFile).toBeCalledWith( filePath, - JSON.stringify(mock, null, 2) + JSON.stringify(mock, null, 2), ); }); @@ -87,7 +87,7 @@ describe("writeJSONToFile", () => { expect(fs.promises.mkdir).not.toBeCalled(); expect(fs.promises.writeFile).toBeCalledWith( filePath, - JSON.stringify(mock, null, 2) + JSON.stringify(mock, null, 2), ); }); }); diff --git a/types/advocates.ts b/types/advocates.ts index 4c880af45e..770e22538c 100644 --- a/types/advocates.ts +++ b/types/advocates.ts @@ -11,7 +11,7 @@ type AdvocatesWorldRegion = (typeof ADVOCATES_WORLD_REGIONS)[keyof typeof ADVOCATES_WORLD_REGIONS]; const ADVOCATES_WORLD_REGION_OPTIONS = Object.values( - ADVOCATES_WORLD_REGIONS + ADVOCATES_WORLD_REGIONS, ).sort(); interface Advocate { diff --git a/types/events.ts b/types/events.ts index aafbb986cb..93cc0a3e9e 100644 --- a/types/events.ts +++ b/types/events.ts @@ -55,7 +55,7 @@ type CommunityEvent = { }; const COMMUNITY_EVENT_TYPE_OPTIONS = Object.values( - COMMUNITY_EVENT_TYPES + COMMUNITY_EVENT_TYPES, ).sort(); export {