Skip to content

Commit 370a6da

Browse files
committed
Fix precommit hook to not use nix
1 parent 53ade36 commit 370a6da

47 files changed

Lines changed: 411 additions & 237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
staged=$(git diff --name-only --staged --diff-filter=d)
5-
export NIXPKGS_ALLOW_INSECURE=1
6-
nix develop --impure --command bash -c "yarn format && pre-commit run --all-files"
5+
yarn format
76
git add ${staged}

.prettierignore

Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,76 @@
11
# Add files here to ignore them from prettier formatting
22

3-
/**/.vercel/
3+
# See http://help.github.com/ignore-files/ for more about ignoring files.
4+
5+
# compiled output
46
/dist
7+
/tmp
8+
/out-tsc
9+
/**/dist
10+
11+
# dependencies
12+
node_modules
13+
14+
# IDEs and editors
15+
/.idea
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# IDE - VSCode
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
30+
# misc
31+
/.sass-cache
32+
/connect.lock
533
/coverage
6-
/**/.next
34+
/libpeerconnection.log
35+
npm-debug.log
36+
yarn-error.log
37+
testem.log
38+
/typings
39+
40+
# System Files
41+
.DS_Store
42+
Thumbs.db
43+
/**/.vercel
44+
45+
# Environment files
46+
.env
47+
.env.local
48+
.supabase.env
49+
.vercel
50+
51+
# Nx
52+
.nx/
53+
54+
# Next.js
55+
.next
56+
57+
# Python
758
/**/venv
859
/**/.venv
9-
/**/.serverless
60+
/**/__pycache__
61+
/**/.cache
62+
/**/reports/
63+
/**/coverage/
64+
65+
# Airplane
66+
/**/.airplane
67+
# Sentry
68+
.sentryclirc
69+
70+
# Serverless
71+
/**/.serverless/
72+
73+
# Chalice
74+
/**/.chalice/config.json
75+
/**/.chalice/deployments
76+

apps/dashboard/components/events/event-details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const Container = styled.div`
257257
display: flex;
258258
flex-direction: column;
259259
260-
background-color: #F6F6F6;
260+
background-color: #f6f6f6;
261261
border: 3px solid #121212;
262262
border-radius: 10px;
263263

apps/dashboard/components/svg/star-4.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import * as React from 'react';
22
import { SVGProps } from 'react';
33

44
const Star4 = (props: SVGProps<SVGSVGElement>) => (
5-
<svg
6-
width="574"
7-
height="259"
8-
viewBox="0 0 574 259"
9-
fill="none"
10-
xmlns="http://www.w3.org/2000/svg"
11-
{...props}
12-
>
13-
<path
14-
d="M252.751 0.859661L326.242 103.284L326.433 103.55L326.723 103.397L464.498 30.3488L414.7 148.681L414.505 149.146L415.006 149.2L571.848 166.053L428.17 231.169L427.711 231.377L428.042 231.757L512.389 328.546L358.669 302.312L358.346 302.257L358.248 302.57L320.524 422.856L247.033 320.431L246.842 320.165L246.552 320.318L108.777 393.367L158.574 275.034L158.77 274.569L158.269 274.515L1.42649 257.663L145.104 192.546L145.563 192.338L145.232 191.958L60.8863 95.1689L214.606 121.403L214.929 121.458L215.027 121.145L252.751 0.859661Z"
15-
fill="#E8FF9C"
16-
stroke="black"
17-
strokeWidth="0.75"
18-
/>
19-
</svg>
5+
<svg
6+
width="574"
7+
height="259"
8+
viewBox="0 0 574 259"
9+
fill="none"
10+
xmlns="http://www.w3.org/2000/svg"
11+
{...props}
12+
>
13+
<path
14+
d="M252.751 0.859661L326.242 103.284L326.433 103.55L326.723 103.397L464.498 30.3488L414.7 148.681L414.505 149.146L415.006 149.2L571.848 166.053L428.17 231.169L427.711 231.377L428.042 231.757L512.389 328.546L358.669 302.312L358.346 302.257L358.248 302.57L320.524 422.856L247.033 320.431L246.842 320.165L246.552 320.318L108.777 393.367L158.574 275.034L158.77 274.569L158.269 274.515L1.42649 257.663L145.104 192.546L145.563 192.338L145.232 191.958L60.8863 95.1689L214.606 121.403L214.929 121.458L215.027 121.145L252.751 0.859661Z"
15+
fill="#E8FF9C"
16+
stroke="black"
17+
strokeWidth="0.75"
18+
/>
19+
</svg>
2020
);
2121

22-
export default Star4;
22+
export default Star4;

apps/dashboard/components/svg/star-5.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import * as React from 'react';
22
import { SVGProps } from 'react';
33

44
const Star5 = (props: SVGProps<SVGSVGElement>) => (
5-
<svg
6-
width="556"
7-
height="187"
8-
viewBox="0 0 556 187"
9-
fill="none"
10-
xmlns="http://www.w3.org/2000/svg"
11-
{...props}
12-
>
13-
<path
14-
d="M215.675 -222.535L300.478 -122.341L300.71 -122.067L300.994 -122.288L429.332 -222.202L386.958 -92.0553L386.787 -91.5288L387.34 -91.5649L554.098 -102.488L409.651 -18.4482L409.329 -18.2609L409.514 -17.9377L457.533 65.9199L355.181 55.2488L354.811 55.2102L354.77 55.5806L340.354 186.05L255.551 85.8568L255.319 85.582L255.035 85.8032L126.697 185.718L169.07 55.5707L169.242 55.0443L168.689 55.0804L1.93092 66.0037L146.378 -18.0363L146.856 -18.3148L146.42 -18.6559L38.604 -102.973L200.86 -91.7322L201.219 -91.7073L201.259 -92.0651L215.675 -222.535Z"
15-
fill="#E8FF9C"
16-
stroke="black"
17-
strokeWidth="0.75"
18-
/>
19-
</svg>
5+
<svg
6+
width="556"
7+
height="187"
8+
viewBox="0 0 556 187"
9+
fill="none"
10+
xmlns="http://www.w3.org/2000/svg"
11+
{...props}
12+
>
13+
<path
14+
d="M215.675 -222.535L300.478 -122.341L300.71 -122.067L300.994 -122.288L429.332 -222.202L386.958 -92.0553L386.787 -91.5288L387.34 -91.5649L554.098 -102.488L409.651 -18.4482L409.329 -18.2609L409.514 -17.9377L457.533 65.9199L355.181 55.2488L354.811 55.2102L354.77 55.5806L340.354 186.05L255.551 85.8568L255.319 85.582L255.035 85.8032L126.697 185.718L169.07 55.5707L169.242 55.0443L168.689 55.0804L1.93092 66.0037L146.378 -18.0363L146.856 -18.3148L146.42 -18.6559L38.604 -102.973L200.86 -91.7322L201.219 -91.7073L201.259 -92.0651L215.675 -222.535Z"
15+
fill="#E8FF9C"
16+
stroke="black"
17+
strokeWidth="0.75"
18+
/>
19+
</svg>
2020
);
2121

22-
export default Star5;
22+
export default Star5;

apps/dashboard/pages/api/companies/[userId].ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ export default async function handler(
4040
}
4141
const companyId = companyData.data['company_id'];
4242

43-
return res
44-
.status(200)
45-
.json({
46-
data: {
47-
company_id: companyId,
48-
event_id: eventId,
49-
company_name: companyName,
50-
},
51-
});
43+
return res.status(200).json({
44+
data: {
45+
company_id: companyId,
46+
event_id: eventId,
47+
company_name: companyName,
48+
},
49+
});
5250
} else {
5351
return res.status(401).json({ message: 'Unauthorized access.' });
5452
}

apps/dashboard/pages/api/hacker-profile/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const handler: NextApiHandler = async (req, res) => {
5353

5454
if (!userParticipantProfile.error) {
5555
userObj = { ...userObj, ...userParticipantProfile.data };
56-
};
56+
}
5757

5858
return res.status(200).json({ success: true, data: userObj });
5959
};

apps/dashboard/pages/api/hacker-profile/resume/get-resume/[userId].ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import 'reflect-metadata';
22
import { HackformResumeUploadClient } from '@hibiscus/hackform-client';
33
import { NextApiHandler } from 'next';
44
import { container } from 'tsyringe';
5-
import {
6-
rateLimitHandler,
7-
} from '../../../../../common/utils';
5+
import { rateLimitHandler } from '../../../../../common/utils';
86

97
const handler: NextApiHandler = async (req, res) => {
108
const { userId } = req.query;
@@ -29,4 +27,4 @@ const handler: NextApiHandler = async (req, res) => {
2927
return res.status(200).json({ exist: checkExist, url });
3028
};
3129

32-
export default handler;
30+
export default handler;

apps/dashboard/pages/api/hacker-profile/update-profile/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const handler: NextApiHandler = async (req, res) => {
2020
newUsername,
2121
} = req.body;
2222

23-
console.log("Body", req.body);
24-
23+
console.log('Body', req.body);
24+
2525
if (newName && newName.split(' ').length !== 2) {
2626
return res.status(400).json({ message: 'Not a full name.' });
2727
}

apps/dashboard/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"resolveJsonModule": true,
1212
"isolatedModules": true,
1313
"incremental": true,
14-
14+
1515
"types": ["jest", "node"]
1616
},
1717
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", "next-env.d.ts"],
@@ -25,7 +25,7 @@
2525
],
2626
"references": [
2727
{
28-
"path": "./.storybook/tsconfig.json",
28+
"path": "./.storybook/tsconfig.json"
2929
}
3030
]
3131
}

0 commit comments

Comments
 (0)