Skip to content

Commit bab35d3

Browse files
authored
chore: lint, format and upgrade deps (#457)
* chore: lint, format and upgrade deps Signed-off-by: mateonunez <mateonunez95@gmail.com> * chore(deps): bump, fix, lint and format Signed-off-by: mateonunez <mateonunez95@gmail.com> --------- Signed-off-by: mateonunez <mateonunez95@gmail.com>
1 parent 379bebf commit bab35d3

File tree

23 files changed

+743
-1748
lines changed

23 files changed

+743
-1748
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
- name: Run linter
2525
run: npm run lint
2626

27-
- name: Run format
28-
run: npm run format
27+
- name: Build
28+
run: npm run build

app/open-source/page.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { WordAnimator } from 'components';
55
import { profileFetcher } from 'lib/fetchers/open-source/fetcher';
66
import meta from 'lib/config/metadata.js';
77

8+
export const dynamic = 'force-dynamic';
9+
810
// TODO: improve SEO
911
export const metadata = {
1012
title: '> open source',
@@ -22,7 +24,7 @@ export default async function OpenSourcePage() {
2224
const words = ['Art', 'People', 'Code', 'Passion', 'You'];
2325

2426
const profile = await profileFetcher();
25-
const { sponsors = [], followers = [] } = profile;
27+
const { sponsors = [], followers = [] } = profile || {};
2628

2729
profile.repositories = undefined;
2830
profile.followers = undefined;
@@ -45,7 +47,7 @@ export default async function OpenSourcePage() {
4547
<Container clean name="you">
4648
<div className={s.thanksContainer}>
4749
<Fade direction="left" clean className="w-full">
48-
<h2 className="text-center font-bold text-4xl">Thank you.</h2>
50+
<h2 className="text-4xl font-bold text-center">Thank you.</h2>
4951

5052
<Sponsors sponsors={sponsors} />
5153
</Fade>
@@ -56,7 +58,7 @@ export default async function OpenSourcePage() {
5658
<Container clean name="people">
5759
<div className={s.genericContainer}>
5860
<Fade direction="left" delay={0.5} className="w-full">
59-
<h2 className="text-center font-bold text-4xl">Still You</h2>
61+
<h2 className="text-4xl font-bold text-center">Still You</h2>
6062

6163
<Followers followers={followers} />
6264
</Fade>
@@ -67,7 +69,7 @@ export default async function OpenSourcePage() {
6769
<Container clean name="passion">
6870
<div className={s.genericContainer}>
6971
<Fade direction="left" delay={0.5} className="w-full">
70-
<h2 className="text-center font-bold text-4xl">About me</h2>
72+
<h2 className="text-4xl font-bold text-center">About me</h2>
7173

7274
<GitHubProfile {...profile} />
7375
</Fade>

biome.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
33
"organizeImports": {
44
"enabled": true
55
},
6+
"files": {
7+
"ignore": ["node_modules", "dist", "coverage", ".next", ".yarn", "public", ".pnp.loader.mjs", ".pnp.cjs"],
8+
"maxSize": 31457280
9+
},
610
"linter": {
711
"enabled": true,
812
"rules": {
913
"recommended": true,
1014
"nursery": {
1115
"all": true,
12-
"noReactSpecificProps": "off",
13-
"noUndeclaredDependencies": "off",
14-
"noNodejsModules": "off"
16+
"useComponentExportOnlyModules": "off",
17+
"noCommonJs": "off",
18+
"useSortedClasses": "off",
19+
"noProcessEnv": "off"
1520
},
1621
"correctness": {
1722
"all": true,
18-
"useExhaustiveDependencies": "off"
23+
"useExhaustiveDependencies": "off",
24+
"noUndeclaredDependencies": "off",
25+
"useImportExtensions": "off",
26+
"noNodejsModules": "off"
1927
},
2028
"suspicious": {
2129
"noArrayIndexKey": "off"
@@ -28,8 +36,7 @@
2836
"formatWithErrors": false,
2937
"indentStyle": "space",
3038
"indentWidth": 2,
31-
"lineWidth": 120,
32-
"ignore": [".next/", "node_modules/"]
39+
"lineWidth": 120
3340
},
3441
"javascript": {
3542
"formatter": {

components/about/about.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,28 @@ const About = ({ ...props }) => {
8484
<div className={s.bio}>
8585
<span className={s.bioYear}>2015</span>
8686
<span className={s.bioText}>
87-
Start working as a Telecommunication Technician. I learned different exchanges such as{' '}
87+
Start working as a Telecommunication Technician. I learned different exchanges such as
8888
<i>UT</i>, <i>1240</i>, <i>MSAN</i> and others telephony protocols.
8989
</span>
9090
</div>
9191
<div className={s.bio}>
9292
<span className={s.bioYear}>2017 to 2022</span>
9393
<span className={s.bioText}>
94-
Works on{' '}
94+
Works on
9595
<Link href="https://sabicom.com" passHref alt="Sabicom SRL" target="_blank" rel="noreferrer">
9696
Sabicom SRL
97-
</Link>{' '}
97+
</Link>
9898
as a Developer. In these years I learned how to work with different technologies. I&apos;m
9999
currently the <i>Team Leader</i>.
100100
</span>
101101
</div>
102102
<div className={s.bio}>
103103
<span className={s.bioYear}>2022 to 2023</span>
104104
<span className={s.bioText}>
105-
Starting a new adventure in{' '}
105+
Starting a new adventure in
106106
<Link href="https://hlpy.co" passHref alt="hlpy" target="_blank" rel="noreferrer">
107107
hlpy
108-
</Link>{' '}
108+
</Link>
109109
as a Software Engineer.
110110
</span>
111111
</div>

components/about/about.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
.introInner {
1818
margin: auto;
1919
padding: 1rem;
20-
background: #fff;
2120
border-radius: 0.5rem;
2221
width: 600px;
2322
background: var(--bg-secondary);
@@ -69,7 +68,7 @@
6968
width: fit-content;
7069
font-size: 2.5rem;
7170
font-weight: 600;
72-
@apply text-transparent bg-clip-text leading-none font-bold;
71+
@apply font-bold leading-none text-transparent bg-clip-text;
7372
@apply bg-gradient-to-b from-pink-500 to-blue-500 via-amber-500 animate-gradient-y;
7473
}
7574

components/animations/fade.jsx

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,24 @@ export default function Fade({
4040
...(trigger?.current && { scrollTrigger: { trigger: trigger.current } }),
4141
});
4242

43-
const fadeDirection =
44-
direction === 'top'
45-
? { y: distance }
46-
: direction === 'right'
47-
? { x: distance }
48-
: direction === 'bottom'
49-
? { y: -distance }
50-
: direction === 'left'
51-
? { x: -distance }
52-
: { x: 0 };
43+
let fadeDirection = { x: 0, y: 0 };
44+
switch (direction) {
45+
case 'top':
46+
fadeDirection = { y: distance };
47+
break;
48+
case 'right':
49+
fadeDirection = { x: distance };
50+
break;
51+
case 'bottom':
52+
fadeDirection = { y: -distance };
53+
break;
54+
case 'left':
55+
fadeDirection = { x: -distance };
56+
break;
57+
default:
58+
fadeDirection = { x: 0 };
59+
break;
60+
}
5361

5462
timeline.fromTo(
5563
ref.current,

components/articles/mdx/code/dark.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ pre {
5555
* @author ericwbailey
5656
*/
5757

58-
code[class*='language-'],
59-
pre[class*='language-'] {
58+
code[class*="language-"],
59+
pre[class*="language-"] {
6060
color: #f8f8f2;
6161
background: none;
62-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
62+
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
6363
text-align: left;
6464
white-space: pre;
6565
word-spacing: normal;
@@ -78,19 +78,19 @@ pre[class*='language-'] {
7878
}
7979

8080
/* Code blocks */
81-
pre[class*='language-'] {
81+
pre[class*="language-"] {
8282
margin: 0.5em 0;
8383
overflow: auto;
8484
border-radius: 1em;
8585
}
8686

87-
:not(pre) > code[class*='language-'],
88-
pre[class*='language-'] {
87+
:not(pre) > code[class*="language-"],
88+
pre[class*="language-"] {
8989
background: #0b0e14;
9090
}
9191

9292
/* Inline code */
93-
:not(pre) > code[class*='language-'] {
93+
:not(pre) > code[class*="language-"] {
9494
padding: 0.1em;
9595
border-radius: 0.3em;
9696
white-space: normal;
@@ -166,15 +166,16 @@ pre[class*='language-'] {
166166
cursor: help;
167167
}
168168

169+
/* biome-ignore lint/correctness/noUnknownMediaFeatureName: it's safe */
169170
@media screen and (-ms-high-contrast: active) {
170-
code[class*='language-'],
171-
pre[class*='language-'] {
171+
code[class*="language-"],
172+
pre[class*="language-"] {
172173
color: windowText;
173174
background: window;
174175
}
175176

176-
:not(pre) > code[class*='language-'],
177-
pre[class*='language-'] {
177+
:not(pre) > code[class*="language-"],
178+
pre[class*="language-"] {
178179
background: window;
179180
}
180181

components/articles/meta/meta.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
margin: 0;
33
display: inline-flex;
44
flex-wrap: wrap;
5-
fontsize: 0.8rem;
5+
font-size: 0.8rem;
66
line-height: 2;
77
letter-spacing: 0.03rem;
88
color: var(--text-secondary);
@@ -25,16 +25,16 @@
2525
}
2626

2727
.tag {
28-
@apply text-slate-400 font-mono;
28+
@apply font-mono text-slate-400;
2929
}
3030

3131
.author {
3232
margin-left: 0.5rem;
33-
@apply text-amber-500 font-bold;
33+
@apply font-bold text-amber-500;
3434
}
3535

3636
.title {
37-
@apply text-transparent text-5xl bg-clip-text font-incompleeta leading-none font-extrabold;
37+
@apply text-5xl font-extrabold leading-none text-transparent bg-clip-text font-incompleeta;
3838
@apply bg-gradient-to-r from-amber-500 to-blue-500 via-rose-500 animate-gradient-xy;
3939
margin: 0 auto 0 auto;
4040
line-height: 1.5;

components/common/footer/footer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ export default function Footer() {
22
return (
33
<footer className="mt-auto p-4 text-right text-white sm:text-center">
44
<p className="absolute left-0 ml-2 text-xs">
5-
Made with{' '}
5+
Made with
66
<span role="img" aria-label="heart">
77
❤️
88
</span>
99
</p>
1010
<p className="text-xs">
11-
&copy; {new Date().getFullYear()}{' '}
11+
&copy; {new Date().getFullYear()}
1212
<a href="https://x.com/mateonunezx" alt="Mateo on Twitter" target="_blank" rel="noopener noreferrer">
1313
Mateo Nunez.
1414
</a>

components/github/followers/followers.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function Followers({ followers }) {
3939
rel="noopener noreferrer"
4040
className="text-center font-black text-sm"
4141
>
42-
and {followers.length - followersShown.length} more...{' '}
42+
and {followers.length - followersShown.length} more...
4343
<span className="text-emoji text-xs">(thank you ❤️)</span>
4444
</a>
4545
</div>

0 commit comments

Comments
 (0)