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

Update project dependencies #568

Merged
merged 2 commits into from
Nov 4, 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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
echo GTM_ID=${{ env.GTM_ID }} >> .env.production
echo DOCUMENTATION_URL=${{ env.DOCUMENTATION_URL }} >> .env.production

- name: Run tsc
run: npm run tsc

- name: Run eslint
run: npm run lint

Expand Down
48 changes: 19 additions & 29 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "stylelint-config-standard-scss",
"plugins": [
"stylelint-order"
],
"plugins": ["stylelint-order"],
"rules": {
"selector-class-pattern": [
"^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$",
Expand All @@ -14,12 +12,18 @@
"scss/at-mixin-argumentless-call-parentheses": "always",
"no-descending-specificity": null,
"alpha-value-notation": "number",
"value-keyword-case": ["lower", {
"camelCaseSvgKeywords": true
}],
"property-no-vendor-prefix": [true, {
"ignoreProperties": ["background-clip"]
}],
"value-keyword-case": [
"lower",
{
"camelCaseSvgKeywords": true
}
],
"property-no-vendor-prefix": [
true,
{
"ignoreProperties": ["background-clip"]
}
],
"keyframes-name-pattern": "[a-z]+([A-Z])?",
"scss/at-extend-no-missing-placeholder": null,
"selector-not-notation": "simple",
Expand Down Expand Up @@ -52,25 +56,15 @@
"rules"
],
"order/properties-order": [
["all",
[
"all",
{
"groupName": "Position",
"properties": [
"position",
"inset",
"top",
"right",
"bottom",
"left",
"z-index"
]
"properties": ["position", "inset", "top", "right", "bottom", "left", "z-index"]
},
{
"groupName": "BoxModel",
"properties": [
"box-sizing",
"display"
]
"properties": ["box-sizing", "display"]
},
{
"groupName": "Layout",
Expand All @@ -92,6 +86,7 @@
"justify-content",
"justify-items",
"justify-self",
"place-content",
"order"
]
},
Expand Down Expand Up @@ -251,12 +246,7 @@
},
{
"groupName": "ListStyle",
"properties": [
"list-style",
"list-style-type",
"list-style-position",
"list-style-image"
]
"properties": ["list-style", "list-style-type", "list-style-position", "list-style-image"]
},
{
"groupName": "Table",
Expand Down
28 changes: 1 addition & 27 deletions gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
RenderRichTextData,
} from 'gatsby-source-contentful/rich-text';

import { ContactUsConfig, OfferingPlanDto } from './src/utils/types';
import { ContactUsConfig, OfferingPlanDto, YoutubeVideoDto } from './src/utils/types';
import { contactUsBaseConfigs } from './src/utils/contactUsConfig';
// importing GraphQL fragments to be available in the app
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down Expand Up @@ -52,32 +52,6 @@ interface ContactUsQuery {
};
}

const validThumbnailKeys = ['default', 'high', 'maxres', 'medium', 'standard'] as const;

type ValidThumbnailKeysType = (typeof validThumbnailKeys)[number];

type Thumbnail = Record<
ValidThumbnailKeysType,
{
height: number;
width: number;
url: string;
}
>;

interface YoutubeVideoDto {
id: string;
title: string;
duration: string;
published_at: string;
statistics: {
comment_count: number;
like_count: number;
view_count: number;
};
thumbnail: Partial<Thumbnail>;
}

const acceleratorsTemplatesPath = './src/templates/accelerators';
const pricingTemplatesPath = './src/templates/pricing';
const sponsorsTemplatesPath = './src/templates/sponsorship-program';
Expand Down
Loading