diff --git a/biome.json b/biome.json index 2dd531a..b118871 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.2/schema.json", "organizeImports": { "enabled": true }, @@ -8,11 +8,19 @@ "rules": { "all": true, "correctness": { - "noNodejsModules": "off" + "noNodejsModules": "off", + "useImportExtensions": "off", + "noUnknownFunction": "off" }, "complexity": { "noExcessiveCognitiveComplexity": "off" }, + "suspicious": { + "noReactSpecificProps": "off" + }, + "performance": { + "useTopLevelRegex": "off" + }, "style": { "noDefaultExport": "off", "noParameterProperties": "off", @@ -66,14 +74,7 @@ } }, "nursery": { - "noDuplicateElseIf": "warn", - "noDuplicateJsonKeys": "warn", - "noEvolvingTypes": "warn", - "noYodaExpression": "warn", - "useConsistentBuiltinInstantiation": "warn", - "useErrorMessage": "warn", - "useImportExtensions": "off", - "useThrowNewError": "warn" + "noDuplicateElseIf": "warn" } } }, diff --git a/bun.lockb b/bun.lockb index 66f545f..7049710 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index b6a286c..9c4775f 100644 --- a/package.json +++ b/package.json @@ -12,16 +12,16 @@ }, "dependencies": { "@algolia/autocomplete-core": "^1.17.4", - "@headlessui/react": "^2.1.3", + "@headlessui/react": "^2.1.8", "@headlessui/tailwindcss": "^0.2.1", "@mdx-js/loader": "^3.0.1", "@mdx-js/react": "^3.0.1", - "@next/mdx": "^14.2.7", + "@next/mdx": "^14.2.13", "@sindresorhus/slugify": "^2.2.1", "@tailwindcss/typography": "^0.5.15", "@types/mdx": "^2.0.13", - "@types/node": "^22.5.1", - "@types/react": "^18.3.4", + "@types/node": "^22.5.5", + "@types/react": "^18.3.8", "@types/react-dom": "^18.3.0", "@types/react-highlight-words": "^0.20.0", "acorn": "^8.12.1", @@ -29,10 +29,10 @@ "clsx": "^2.1.1", "fast-glob": "^3.3.2", "flexsearch": "^0.7.43", - "framer-motion": "^11.3.30", + "framer-motion": "^11.5.5", "mdast-util-to-string": "^4.0.0", "mdx-annotations": "^0.1.4", - "next": "^14.2.7", + "next": "^14.2.13", "next-themes": "^0.3.0", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -40,19 +40,19 @@ "remark": "^15.0.1", "remark-gfm": "^4.0.0", "remark-mdx": "^3.0.1", - "shiki": "^1.14.1", + "shiki": "^1.18.0", "simple-functional-loader": "^1.2.1", - "tailwindcss": "^3.4.10", - "typescript": "^5.5.4", + "tailwindcss": "^3.4.12", + "typescript": "^5.6.2", "unist-util-filter": "^5.0.1", "unist-util-visit": "^5.0.0", "zustand": "^4.5.5" }, "devDependencies": { - "@biomejs/biome": "^1.8.3", + "@biomejs/biome": "^1.9.2", "@iconify-icon/react": "^2.1.0", - "@next/bundle-analyzer": "^14.2.7", - "@shikijs/transformers": "^1.14.1", + "@next/bundle-analyzer": "^14.2.13", + "@shikijs/transformers": "^1.18.0", "sharp": "^0.33.5" }, "trustedDependencies": ["@biomejs/biome", "sharp"] diff --git a/styles/tailwind.css b/styles/tailwind.css index 3bbd214..c23ab5e 100644 --- a/styles/tailwind.css +++ b/styles/tailwind.css @@ -1,88 +1,84 @@ @layer base { - :root { - --shiki-color-text: theme('colors.white'); - --shiki-token-constant: theme('colors.brand.300'); - --shiki-token-string: theme('colors.brand.300'); - --shiki-token-comment: theme('colors.zinc.500'); - --shiki-token-keyword: theme('colors.sky.300'); - --shiki-token-parameter: theme('colors.pink.300'); - --shiki-token-function: theme('colors.violet.300'); - --shiki-token-string-expression: theme('colors.brand.300'); - --shiki-token-punctuation: theme('colors.zinc.200'); - } + :root { + --shiki-color-text: theme("colors.white"); + --shiki-token-constant: theme("colors.brand.300"); + --shiki-token-string: theme("colors.brand.300"); + --shiki-token-comment: theme("colors.zinc.500"); + --shiki-token-keyword: theme("colors.sky.300"); + --shiki-token-parameter: theme("colors.pink.300"); + --shiki-token-function: theme("colors.violet.300"); + --shiki-token-string-expression: theme("colors.brand.300"); + --shiki-token-punctuation: theme("colors.zinc.200"); + } - [inert] ::-webkit-scrollbar { - display: none; - } + [inert] ::-webkit-scrollbar { + display: none; + } - .prose [class*='language-'] code .highlighted { - background-color: var(--vp-code-line-highlight-color); - transition: background-color 0.5s; - margin: 0 -24px; - padding: 0 24px; - width: calc(100% + 48px); - display: inline-block; - } + .prose [class*="language-"] code .highlighted { + background-color: var(--vp-code-line-highlight-color); + transition: background-color 0.5s; + margin: 0 -24px; + padding: 0 24px; + width: calc(100% + 48px); + display: inline-block; + } - .prose [class*='language-'] code .highlighted.error { - background-color: var(--vp-code-line-error-color); - } + .prose [class*="language-"] code .highlighted.error { + background-color: var(--vp-code-line-error-color); + } - .prose [class*='language-'] code .highlighted.warning { - background-color: var(--vp-code-line-warning-color); - } + .prose [class*="language-"] code .highlighted.warning { + background-color: var(--vp-code-line-warning-color); + } - .prose [class*='language-'] code .diff { - transition: background-color 0.5s; - margin: 0 -24px; - padding: 0 24px; - width: calc(100% + 48px); - display: inline-block; - } + .prose [class*="language-"] code .diff { + transition: background-color 0.5s; + margin: 0 -24px; + padding: 0 24px; + width: calc(100% + 48px); + display: inline-block; + } - .prose [class*='language-'] code .diff:before { - position: absolute; - left: 10px; - } + .prose [class*="language-"] code .diff:before { + position: absolute; + left: 10px; + } - .prose [class*='language-'] .has-focused .line:not(.focused) { - filter: blur(0.095rem); - opacity: 0.4; - transition: - filter 0.35s, - opacity 0.35s; - } + .prose [class*="language-"] .has-focused .line:not(.focused) { + filter: blur(0.095rem); + opacity: 0.4; + transition: filter 0.35s, opacity 0.35s; + } - .prose [class*='language-'] .has-focused .line:not(.focused) { - opacity: 0.7; - transition: - filter 0.35s, - opacity 0.35s; - } + .prose [class*="language-"] .has-focused .line:not(.focused) { + opacity: 0.7; + transition: filter 0.35s, opacity 0.35s; + } - .prose [class*='language-']:hover .has-focused .line:not(.focused) { - filter: blur(0); - opacity: 1; - } + .prose [class*="language-"]:hover .has-focused .line:not(.focused) { + filter: blur(0); + opacity: 1; + } - .prose [class*='language-'] code .diff.remove { - background-color: var(--vp-code-line-diff-remove-color); - opacity: 0.7; - } + .prose [class*="language-"] code .diff.remove { + background-color: var(--vp-code-line-diff-remove-color); + opacity: 0.7; + } - .prose [class*='language-'] code .diff.remove:before { - content: '-'; - color: var(--vp-code-line-diff-remove-symbol-color); - } + .prose [class*="language-"] code .diff.remove:before { + content: "-"; + color: var(--vp-code-line-diff-remove-symbol-color); + } - .prose [class*='language-'] code .diff.add { - background-color: var(--vp-code-line-diff-add-color); - } + .prose [class*="language-"] code .diff.add { + background-color: var(--vp-code-line-diff-add-color); + } - .prose [class*='language-'] code .diff.add:before { - content: '+'; - color: var(--vp-code-line-diff-add-symbol-color); - } + .prose [class*="language-"] code .diff.add:before { + content: "+"; + color: var(--vp-code-line-diff-add-symbol-color); + } } @tailwind base;