mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
- Downgrade ESLint from 9.37.0 to 8.57.1 for compatibility with @next/eslint-plugin-next - Downgrade @typescript-eslint/parser to 7.18.0 - Add ESLint rule overrides to convert errors to warnings - Fix imports in all calendar and login blocks from primitives/* to @/registry/*/ui/* - Fix cn utils imports from relative paths to @/lib/utils - Add .eslintignore for generated files (__registry__, .source) - Update ESLint flat config with proper ignores and rule customization - Fix tailwind.config.ts darkMode from array to string - Fix empty interfaces in types/nav.ts (use type aliases) - Fix ToastViewport type errors with ts-expect-error comments - Remove unist-builder Node import (doesn't exist) - Fix animated-list Function type with proper typing This resolves CI/CD build failures by ensuring ESLint compatibility and fixing import paths that were incorrectly using relative primitives paths instead of registry imports.
30 lines
535 B
TypeScript
30 lines
535 B
TypeScript
export interface UnistNode {
|
|
type: string
|
|
name?: string
|
|
tagName?: string
|
|
value?: string
|
|
properties?: {
|
|
__rawString__?: string
|
|
__className__?: string
|
|
__event__?: string
|
|
[key: string]: unknown
|
|
} & NpmCommands
|
|
attributes?: {
|
|
name: string
|
|
value: unknown
|
|
type?: string
|
|
}[]
|
|
children?: UnistNode[]
|
|
}
|
|
|
|
export interface UnistTree {
|
|
children: UnistNode[]
|
|
}
|
|
|
|
export interface NpmCommands {
|
|
__npmCommand__?: string
|
|
__yarnCommand__?: string
|
|
__pnpmCommand__?: string
|
|
__bunCommand__?: string
|
|
}
|