Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

chore: update estlint and package fixes

Dillion Verma31769376ce11
diff --git a/.eslintrc.json b/.eslintrc.json
deleted file mode 100644
index 9433b730..00000000
--- a/.eslintrc.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "$schema": "https://json.schemastore.org/eslintrc",
- "root": true,
- "extends": [
- "next/core-web-vitals",
- "prettier"
- ],
- "rules": {
- "@next/next/no-html-link-for-pages": "off"
- },
- "settings": {
- "next": {
- "rootDir": ["app/*/"]
- }
- },
- "overrides": [
- {
- "files": ["*.ts", "*.tsx"],
- "parser": "@typescript-eslint/parser"
- }
- ]
-}
\ No newline at end of file
diff --git a/apps/www/components/commit-list.tsx b/apps/www/components/commit-list.tsx
index 78b803e0..72ac399a 100644
--- a/apps/www/components/commit-list.tsx
+++ b/apps/www/components/commit-list.tsx
@@ -6,6 +6,13 @@ import { toast } from "sonner"
import { Badge } from "@/components/ui/badge"
+type Commit = {
+ commit: {
+ message: string
+ author: { date: string }
+ }
+}
+
export default function CommitList({
repo,
owner,
@@ -14,7 +21,7 @@ export default function CommitList({
owner: string
}) {
const [loading, setLoading] = useState(false)
- const [commits, setCommits] = useState<any[]>([])
+ const [commits, setCommits] = useState<Commit[]>([])
useEffect(() => {
const loadCommits = async () => {
diff --git a/apps/www/eslint.config.mjs b/apps/www/eslint.config.mjs
new file mode 100644
index 00000000..3b4d71d4
--- /dev/null
+++ b/apps/www/eslint.config.mjs
@@ -0,0 +1,21 @@
+import { dirname } from "path"
+import { fileURLToPath } from "url"
+import { FlatCompat } from "@eslint/eslintrc"
+
+const __filename = fileURLToPath(import.meta.url)
+const __dirname = dirname(__filename)
+
+const compat = new FlatCompat({
+ baseDirectory: __dirname,
+})
+
+const eslintConfig = [
+ ...compat.config({
+ extends: ["next/core-web-vitals", "next/typescript"],
+ rules: {
+ "@next/next/no-duplicate-head": "off",
+ },
+ }),
+]
+
+export default eslintConfig
diff --git a/apps/www/lib/registry.ts b/apps/www/lib/registry.ts
index 6226c810..4caa0c3c 100644
--- a/apps/www/lib/registry.ts
+++ b/apps/www/lib/registry.ts
@@ -1,5 +1,3 @@
-// @ts-nocheck - Temporary disable type checking because of zod 4 type inference with z.infer.
-
import fs from "node:fs/promises"
import { tmpdir } from "os"
import path from "path"
diff --git a/apps/www/package.json b/apps/www/package.json
index 289e5283..3e167aa2 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -15,11 +15,9 @@
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
- "format:fix": "prettier --write \"**/*.{ts,tsx,mdx}\"",
- "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\"",
- "format:write": "pnpm format:fix",
- "check": "pnpm lint && pnpm typecheck && pnpm format:check",
- "test": "echo 'No tests configured'"
+ "format:fix": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
+ "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
+ "check": "pnpm lint && pnpm typecheck && pnpm format:check"
},
"dependencies": {
"@heroicons/react": "^2.2.0",
@@ -52,9 +50,9 @@
"cobe": "^0.6.4",
"concurrently": "^9.2.1",
"date-fns": "^2.30.0",
- "fumadocs-core": "^15.7.12",
- "fumadocs-mdx": "^11.10.0",
- "fumadocs-ui": "^15.7.12",
+ "fumadocs-core": "15.3.1",
+ "fumadocs-mdx": "11.6.3",
+ "fumadocs-ui": "15.3.1",
"geist": "^1.5.1",
"gray-matter": "^4.0.3",
"jotai": "^2.14.0",
@@ -80,7 +78,7 @@
"tailwindcss": "^4.1.13",
"ts-morph": "^23.0.0",
"tw-animate-css": "^1.3.8",
- "zod": "^4.1.8"
+ "zod": "^3.24.1"
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
diff --git a/package.json b/package.json
index 0c3b1844..6f64fb92 100644
--- a/package.json
+++ b/package.json
@@ -6,22 +6,17 @@
"packageManager": "[email protected]",
"scripts": {
"preinstall": "npx only-allow pnpm",
- "dev": "turbo run dev",
+ "dev": "turbo run dev --parallel",
"build": "turbo run build",
"start": "turbo run start",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"typecheck": "turbo run typecheck",
- "format:fix": "prettier --write \"**/*.{ts,tsx,mdx}\"",
- "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\"",
+ "format:fix": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
+ "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
"build:docs": "turbo run build:docs --filter=@magicui/www",
"build:registry": "turbo run build:registry --filter=@magicui/www",
- "dev:all": "turbo run dev --parallel",
- "build:all": "turbo run build",
- "lint:all": "turbo run lint",
- "typecheck:all": "turbo run typecheck",
- "check": "pnpm lint && pnpm typecheck && pnpm format:check",
- "test": "echo 'No tests configured'"
+ "check": "pnpm lint && pnpm typecheck && pnpm format:check"
},
"devDependencies": {
"prettier": "^3.6.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0a3a3171..fad2aeea 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -111,14 +111,14 @@ importers:
specifier: ^2.30.0
version: 2.30.0
fumadocs-core:
- specifier: ^15.7.12
+ specifier: 15.3.1
fumadocs-mdx:
- specifier: ^11.10.0
+ specifier: 11.6.3
fumadocs-ui:
- specifier: ^15.7.12
+ specifier: 15.3.1
geist:
specifier: ^1.5.1
@@ -195,8 +195,8 @@ importers:
specifier: ^1.3.8
version: 1.3.8
zod:
- specifier: ^4.1.8
- version: 4.1.8
+ specifier: ^3.24.1
+ version: 3.25.76
devDependencies:
'@commitlint/cli':
specifier: ^19.8.1
@@ -3184,28 +3184,17 @@ packages:
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
- resolution: {integrity: sha512-b30+TYKaqdNoOQ75dQqWw338KZsgLPCdZrQNP1gyLiDhE/A0kzJBe+jjLyIFL/6rLtZFa3HYVaV9GnRtazPW6Q==}
+ resolution: {integrity: sha512-xMRne357+0PbgKQFkfKMUVX1qq4daiqWlYbBEAh1ZMjcnRaYrKZ07HA8l893s8fwqFYdwvKv8kyPhz/Rk8Agpw==}
peerDependencies:
- '@mixedbread/sdk': ^0.19.0
'@oramacloud/client': 1.x.x || 2.x.x
- '@tanstack/react-router': 1.x.x
- '@types/react': '*'
- algoliasearch: 5.x.x
+ algoliasearch: 4.24.0
next: 14.x.x || 15.x.x
react: 18.x.x || 19.x.x
react-dom: 18.x.x || 19.x.x
- react-router: 7.x.x
- waku: ^0.26.0
peerDependenciesMeta:
- '@mixedbread/sdk':
- optional: true
'@oramacloud/client':
optional: true
- '@tanstack/react-router':
- optional: true
- '@types/react':
- optional: true
algoliasearch:
optional: true
next:
@@ -3214,43 +3203,26 @@ packages:
optional: true
react-dom:
optional: true
- react-router:
- optional: true
- waku:
- optional: true
- resolution: {integrity: sha512-KYq7l1AEvJ0P99cZBgbeymRazkadoUWqolmTd0ZP5TXxBU50yomvvuMMvcvdvzS4RQ/y79nO3V+X6xaPDAZa3w==}
+ resolution: {integrity: sha512-R7ca68TDnPwJGx3YhCzIrcZfqo8Buq9k3piZMFV8ydO6gNJijdJ9iyddHi/D3DABfmMrgEL551EFxRsaDUU27A==}
hasBin: true
peerDependencies:
- '@fumadocs/mdx-remote': ^1.4.0
+ '@fumadocs/mdx-remote': ^1.2.0
fumadocs-core: ^14.0.0 || ^15.0.0
next: ^15.3.0
- react: '*'
- vite: 6.x.x || 7.x.x
peerDependenciesMeta:
'@fumadocs/mdx-remote':
optional: true
- next:
- optional: true
- react:
- optional: true
- vite:
- optional: true
- resolution: {integrity: sha512-N0qkWMi10ly2UYS4RCZy/lcbhbgBAguwc96RCZnBKaRRouHesO4V8Mq/kksEZ4ZMO7FQME6ORS56Jo7xDiqslg==}
+ resolution: {integrity: sha512-0IE7gUHguM0o+Au/QZdxCGRt7s4KbXYFl6rO2U+nfmw43+NH3i9Cw+v/XIuL1qjolFK2uorlKFYxuRVH2ZOuoQ==}
peerDependencies:
- '@types/react': '*'
next: 14.x.x || 15.x.x
react: 18.x.x || 19.x.x
react-dom: 18.x.x || 19.x.x
tailwindcss: ^3.4.14 || ^4.0.0
peerDependenciesMeta:
- '@types/react':
- optional: true
- next:
- optional: true
tailwindcss:
optional: true
@@ -4338,10 +4310,6 @@ packages:
resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-tt6PvKu4WyzPwWUzy/hvPFqn+uwXO0K1ZHka8az3NnrhWJDmSqI8ncWq0fkL0k/lmmi5tAC11FXwXuh0rFbt1A==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
-
resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
@@ -5840,9 +5808,6 @@ packages:
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
- resolution: {integrity: sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==}
-
resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
@@ -9065,7 +9030,7 @@ snapshots:
optional: true
dependencies:
'@formatjs/intl-localematcher': 0.6.1
'@orama/orama': 3.1.13
@@ -9076,47 +9041,41 @@ snapshots:
hast-util-to-jsx-runtime: 2.3.6
image-size: 2.0.2
negotiator: 1.0.0
- npm-to-yarn: 3.0.1
react-remove-scroll: 2.7.1(@types/[email protected])([email protected])
remark: 15.0.1
remark-gfm: 4.0.1
- remark-rehype: 11.1.2
scroll-into-view-if-needed: 3.1.0
shiki: 3.12.2
unist-util-visit: 5.0.0
optionalDependencies:
- '@types/react': 19.1.13
react: 19.1.1
react-dom: 19.1.1([email protected])
transitivePeerDependencies:
+ - '@types/react'
- supports-color
dependencies:
'@mdx-js/mdx': 3.1.1
'@standard-schema/spec': 1.0.0
chokidar: 4.0.3
+ cross-spawn: 7.0.6
esbuild: 0.25.9
estree-util-value-to-estree: 3.4.0
+ fast-glob: 3.3.3
+ gray-matter: 4.0.3
js-yaml: 4.1.0
lru-cache: 11.2.1
picocolors: 1.1.1
- remark-mdx: 3.1.1
- remark-parse: 11.0.0
- tinyexec: 1.0.1
- tinyglobby: 0.2.15
- unified: 11.0.5
unist-util-visit: 5.0.0
- zod: 4.1.8
- optionalDependencies:
- react: 19.1.1
+ zod: 3.25.76
transitivePeerDependencies:
- supports-color
dependencies:
@@ -9129,28 +9088,24 @@ snapshots:
'@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
class-variance-authority: 0.7.1
lodash.merge: 4.6.2
postcss-selector-parser: 7.1.0
react: 19.1.1
react-dom: 19.1.1([email protected])
react-medium-image-zoom: 5.3.0([email protected]([email protected]))([email protected])
- scroll-into-view-if-needed: 3.1.0
+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])
tailwind-merge: 3.3.1
optionalDependencies:
- '@types/react': 19.1.13
tailwindcss: 4.1.13
transitivePeerDependencies:
- - '@mixedbread/sdk'
- '@oramacloud/client'
- - '@tanstack/react-router'
+ - '@types/react'
- '@types/react-dom'
- algoliasearch
- - react-router
- supports-color
- - waku
@@ -10503,8 +10458,6 @@ snapshots:
path-key: 4.0.0
unicorn-magic: 0.3.0
-
dependencies:
boolbase: 1.0.0
@@ -12196,6 +12149,4 @@ snapshots:
-