Skip to content

Commit 4886da2

Browse files
chore: add pre-commit hooks for Prettier and fix CI pipeline
1 parent 0137c9c commit 4886da2

File tree

23 files changed

+856
-718
lines changed

23 files changed

+856
-718
lines changed

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import nextConfig from "eslint-config-next";
2+
3+
export default [...nextConfig];

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@babel/preset-env": "^7.24.0",
3131
"@babel/preset-react": "^7.23.3",
3232
"@babel/preset-typescript": "^7.23.3",
33+
"@eslint/eslintrc": "^3.3.3",
3334
"@faker-js/faker": "^9.1.0",
3435
"@testing-library/jest-dom": "^6.4.2",
3536
"@testing-library/react": "^16.3.2",

src/app/about/page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ import AboutCTA from '@/components/aboutCTA/aboutCTA';
99

1010
export const metadata: Metadata = {
1111
title: 'About Us | Dallas Software Developers',
12-
description: 'Learn about Dallas Software Developers - a community of passionate developers sharing knowledge and building connections in Dallas-Fort Worth.',
13-
keywords: 'about DSD, Dallas developers community, software developer group history, tech community Dallas',
12+
description:
13+
'Learn about Dallas Software Developers - a community of passionate developers sharing knowledge and building connections in Dallas-Fort Worth.',
14+
keywords:
15+
'about DSD, Dallas developers community, software developer group history, tech community Dallas',
1416
openGraph: {
1517
title: 'About Us | Dallas Software Developers',
16-
description: 'Learn about Dallas Software Developers - a community of passionate developers sharing knowledge and building connections.',
18+
description:
19+
'Learn about Dallas Software Developers - a community of passionate developers sharing knowledge and building connections.',
1720
type: 'website',
1821
},
1922
};

src/app/cohorts/layout.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ import type { Metadata } from 'next';
22

33
export const metadata: Metadata = {
44
title: 'Cohorts | Dallas Software Developers',
5-
description: 'Join our intensive cohort program. Learn software development with hands-on projects and mentorship from experienced Dallas developers.',
6-
keywords: 'coding cohort Dallas, software development bootcamp, developer mentorship, hands-on coding program',
5+
description:
6+
'Join our intensive cohort program. Learn software development with hands-on projects and mentorship from experienced Dallas developers.',
7+
keywords:
8+
'coding cohort Dallas, software development bootcamp, developer mentorship, hands-on coding program',
79
openGraph: {
810
title: 'Cohorts | Dallas Software Developers',
9-
description: 'Join our intensive cohort program with hands-on projects and mentorship.',
11+
description:
12+
'Join our intensive cohort program with hands-on projects and mentorship.',
1013
type: 'website',
1114
},
1215
};

src/app/cohorts/notificationForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ export default function NotificationForm() {
5252
return;
5353
}
5454

55-
formData.token = token ?? '';
55+
const submitData = { ...formData, token: token ?? '' };
5656

5757
try {
5858
const response = await fetch('/api/notificationForm', {
5959
method: 'POST',
6060
headers: {
6161
'Content-Type': 'application/json',
6262
},
63-
body: JSON.stringify(formData),
63+
body: JSON.stringify(submitData),
6464
});
6565

6666
if (!response.ok) {

src/app/community/layout.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ import type { Metadata } from 'next';
22

33
export const metadata: Metadata = {
44
title: 'Community | Dallas Software Developers',
5-
description: 'Join our vibrant community of Dallas developers. Connect, learn, and grow with fellow software professionals.',
6-
keywords: 'Dallas developer community, software developer networking, tech community DFW, developer meetup group',
5+
description:
6+
'Join our vibrant community of Dallas developers. Connect, learn, and grow with fellow software professionals.',
7+
keywords:
8+
'Dallas developer community, software developer networking, tech community DFW, developer meetup group',
79
openGraph: {
810
title: 'Community | Dallas Software Developers',
9-
description: 'Join our vibrant community of Dallas developers. Connect, learn, and grow.',
11+
description:
12+
'Join our vibrant community of Dallas developers. Connect, learn, and grow.',
1013
type: 'website',
1114
},
1215
};

src/app/hooks/useGlobalState/useGlobalState.tsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
import Spinner from '@/components/spinner/spinner';
33

44
import { useQuery } from '@tanstack/react-query';
5-
import {
6-
createContext,
7-
useContext,
8-
useState,
9-
ReactNode,
10-
useEffect,
11-
} from 'react';
5+
import { createContext, useContext, ReactNode } from 'react';
126
import { ActionLink } from '@/types';
137

148
type GlobalState = {
@@ -20,24 +14,14 @@ const GlobalStateContext = createContext<GlobalState>({
2014
});
2115

2216
export const GlobalStateProvider = ({ children }: { children: ReactNode }) => {
23-
const [actionLinks, setActionLinks] = useState<Array<ActionLink> | null>(
24-
null
25-
);
26-
27-
const { data: actionLinksResponse, isLoading } = useQuery({
17+
const { data: actionLinks = null, isLoading } = useQuery({
2818
queryKey: ['actionLinks'],
2919
queryFn: async () => {
3020
const response = await fetch('/api/actionLinks', { cache: 'no-store' });
3121
return response.json();
3222
},
3323
});
3424

35-
useEffect(() => {
36-
if (actionLinksResponse) {
37-
setActionLinks(actionLinksResponse);
38-
}
39-
}, [actionLinksResponse]);
40-
4125
if (isLoading) return <Spinner />;
4226

4327
return (

src/app/labels.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export const LABELS = {
504504
technicalFoundation: {
505505
title: 'Technical Foundation',
506506
description:
507-
"You should be comfortable with core web or mobile technologies (e.g., JavaScript, React, C#, .NET, Java, Swift) and eager to work with tools like GitHub, Figma, Jira, and VS Code.",
507+
'You should be comfortable with core web or mobile technologies (e.g., JavaScript, React, C#, .NET, Java, Swift) and eager to work with tools like GitHub, Figma, Jira, and VS Code.',
508508
},
509509
},
510510
dallasCallout: {
@@ -801,7 +801,7 @@ export const LABELS = {
801801
{
802802
title: 'Technical Foundation',
803803
description:
804-
"You should be comfortable with core web or mobile technologies (e.g., JavaScript, React, C#, .NET, Java, Swift) and eager to work with tools like GitHub, Figma, Jira, and VS Code.",
804+
'You should be comfortable with core web or mobile technologies (e.g., JavaScript, React, C#, .NET, Java, Swift) and eager to work with tools like GitHub, Figma, Jira, and VS Code.',
805805
},
806806
],
807807
programDetailsArray: [
@@ -828,7 +828,7 @@ export const LABELS = {
828828
role: 'Software Engineer',
829829
company: 'Bank Of America',
830830
quote:
831-
'The biggest benefit of the cohort was providing an environment to practice development in a collaborative team setting, which was something I couldn\'t get from just working on small projects alone. Working with others on a large project over 6 weeks gave me the confidence and skills I needed to excel during my internship, which eventually led to a full-time offer. I\'ve since had the opportunity to return as a cohort lead, continuing to build my leadership skills while giving back to the community that helped launch my career.',
831+
"The biggest benefit of the cohort was providing an environment to practice development in a collaborative team setting, which was something I couldn't get from just working on small projects alone. Working with others on a large project over 6 weeks gave me the confidence and skills I needed to excel during my internship, which eventually led to a full-time offer. I've since had the opportunity to return as a cohort lead, continuing to build my leadership skills while giving back to the community that helped launch my career.",
832832
cohort: 'Cohort 8',
833833
image:
834834
'https://vpgsxqtnqt8tekgb.public.blob.vercel-storage.com/dsd-assets/people/aaryanDas.jpg',

0 commit comments

Comments
 (0)