diff --git a/app/error.jsx b/app/error.jsx index e54d9e87..a0cfe403 100644 --- a/app/error.jsx +++ b/app/error.jsx @@ -4,9 +4,7 @@ import { useEffect } from 'react'; import s from 'styles/pages/404.module.css'; export default function Eror({ error, reset }) { - useEffect(() => { - console.error(error); - }, [error]); + useEffect(() => {}, [error]); return ( <> diff --git a/app/loading.jsx b/app/loading.jsx index 4dd359a6..3a7a564f 100644 --- a/app/loading.jsx +++ b/app/loading.jsx @@ -1,7 +1,7 @@ export default function Loading() { return ( -
-
+
+
); } diff --git a/app/open-source/page.jsx b/app/open-source/page.jsx index 6b5b670f..c2515df1 100644 --- a/app/open-source/page.jsx +++ b/app/open-source/page.jsx @@ -45,7 +45,7 @@ export default async function OpenSourcePage() {
-

Thank you.

+

Thank you.

@@ -56,7 +56,7 @@ export default async function OpenSourcePage() {
-

Still You

+

Still You

@@ -67,7 +67,7 @@ export default async function OpenSourcePage() {
-

About me

+

About me

diff --git a/app/sitemap.jsx b/app/sitemap.jsx index dc523bea..4886116d 100644 --- a/app/sitemap.jsx +++ b/app/sitemap.jsx @@ -1,6 +1,6 @@ -import fs from 'fs'; +import fs from 'node:fs'; import config from 'lib/config'; -import path from 'path'; +import path from 'node:path'; function generateArticlesSitemap() { const result = []; diff --git a/biome.json b/biome.json index 04c25e4d..527eb9aa 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.4.1/schema.json", + "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", "organizeImports": { "enabled": true }, @@ -9,11 +9,16 @@ "recommended": true, "nursery": { "all": true, - "noDefaultExport": "off" + "noReactSpecificProps": "off", + "noUndeclaredDependencies": "off", + "noNodejsModules": "off" }, "correctness": { "all": true, "useExhaustiveDependencies": "off" + }, + "suspicious": { + "noArrayIndexKey": "off" } }, "ignore": [".next/", "node_modules/", "./**/*.json"] diff --git a/components/about/about.jsx b/components/about/about.jsx index 610cbb81..d9793077 100644 --- a/components/about/about.jsx +++ b/components/about/about.jsx @@ -61,7 +61,7 @@ const About = ({ ...props }) => {
-

@mateonunez

+

@mateonunez

@@ -79,8 +79,7 @@ const About = ({ ...props }) => {
2009 - Move to Milan, Italy.
- I started a new life. Known new friends. Learned how to cook. + Move to Milan, Italy.
I started a new life. Known new friends. Learned how to cook.
2015 diff --git a/components/animations/word-animator.jsx b/components/animations/word-animator.jsx index 23f6e3a6..7059b2bd 100644 --- a/components/animations/word-animator.jsx +++ b/components/animations/word-animator.jsx @@ -44,7 +44,7 @@ const WordAnimator = ({ words, clickable }, ref) => { {currentWord} diff --git a/components/articles/mdx/heading/index.jsx b/components/articles/mdx/heading/index.jsx index e37cb2cb..4b869dbc 100644 --- a/components/articles/mdx/heading/index.jsx +++ b/components/articles/mdx/heading/index.jsx @@ -10,7 +10,7 @@ const extractName = (title) => { const CopyToClipboard = ({ id, title, children }) => ( {/*
- +
)} diff --git a/components/terminal/terminal.jsx b/components/terminal/terminal.jsx index 2098ed6c..4132c9c7 100644 --- a/components/terminal/terminal.jsx +++ b/components/terminal/terminal.jsx @@ -102,7 +102,7 @@ const Terminal = () => { return (
-
= 8 ? ` ${s.amber}` : ''}`}> +
= 8 ? `${s.amber}` : ''}`}>
diff --git a/lib/articles/parser.js b/lib/articles/parser.js index 301d4b66..d4acb25a 100644 --- a/lib/articles/parser.js +++ b/lib/articles/parser.js @@ -1,5 +1,5 @@ -import { promises } from 'fs'; -import path from 'path'; +import { promises } from 'node:fs'; +import path from 'node:path'; import matter from 'gray-matter'; import removeMarkdown from 'remove-markdown'; @@ -90,7 +90,7 @@ const serializeOptions = { remarkPlugins, rehypePlugins, }, -} +}; async function compileSource({ content }) { const { compiledSource } = await serialize(content, serializeOptions); diff --git a/lib/config/metadata.js b/lib/config/metadata.js index 667da463..cbd0b2e8 100644 --- a/lib/config/metadata.js +++ b/lib/config/metadata.js @@ -17,7 +17,19 @@ const metadata = { default: defaultTitle, }, description: defaultDescription, - keywords: ['mateo nunez', 'mateonunez', 'software engineer', 'open source', 'javascript', 'nodejs', 'react', 'nextjs', 'typescript', 'colombia', 'italy'], + keywords: [ + 'mateo nunez', + 'mateonunez', + 'software engineer', + 'open source', + 'javascript', + 'nodejs', + 'react', + 'nextjs', + 'typescript', + 'colombia', + 'italy', + ], author, authors: [author], colorSchema: 'dark', diff --git a/lib/hooks/useAnimation.js b/lib/hooks/useAnimation.js index 727d0daf..9855f251 100644 --- a/lib/hooks/useAnimation.js +++ b/lib/hooks/useAnimation.js @@ -4,9 +4,8 @@ import { useEffect } from 'react'; export const useTimeline = (options) => gsap.timeline(options); -// biome-ignore lint/nursery/noEmptyBlockStatements: export const useAnimation = (ref, animation = () => {}, timelines = []) => { - const timeline = !timelines.length ? gsap.timeline() : timelines[0]; + const timeline = timelines.length === 0 ? gsap.timeline() : timelines[0]; const { current } = ref; const { from, to } = animation(); diff --git a/public/site.webmanifest b/public/site.webmanifest index dcb392c0..7eb1da0c 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -1,36 +1,36 @@ { - "theme_color": "#F59E0B", - "background_color": "#000", - "display": "standalone", - "scope": ".", - "start_url": "/", - "name": "Mateo Nunez | ", - "short_name": "Mateo Nunez", - "description": "Mateo Nunez | Senior Developer", - "icons": [ - { - "src": "/icon-192x192.png", - "sizes": "192x192", - "type": "image/png", - "purpose": "any maskable" - }, - { - "src": "/icon-256x256.png", - "sizes": "256x256", - "type": "image/png", - "purpose": "any maskable" - }, - { - "src": "/icon-384x384.png", - "sizes": "384x384", - "type": "image/png", - "purpose": "any maskable" - }, - { - "src": "/icon-512x512.png", - "sizes": "512x512", - "type": "image/png", - "purpose": "any maskable" - } - ] + "theme_color": "#F59E0B", + "background_color": "#000", + "display": "standalone", + "scope": ".", + "start_url": "/", + "name": "Mateo Nunez | ", + "short_name": "Mateo Nunez", + "description": "Mateo Nunez | Senior Developer", + "icons": [ + { + "src": "/icon-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any maskable" + }, + { + "src": "/icon-256x256.png", + "sizes": "256x256", + "type": "image/png", + "purpose": "any maskable" + }, + { + "src": "/icon-384x384.png", + "sizes": "384x384", + "type": "image/png", + "purpose": "any maskable" + }, + { + "src": "/icon-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any maskable" + } + ] }