mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Upstream sync from shadcn-ui/ui (1686 commits since last merge base). Key changes: - packages/shadcn upgraded to 4.1.0 (CLI font transformers, scaffold from github, chart colors) - apps/v4 replaces apps/www as the primary docs/registry app - Font system: 25+ heading font registries, font markers utility, @supports override - Chart improvements: recharts v3 compat, radial chart fixes - templates/ updated with monorepo variants (astro, vite, react-router, start) - skills/shadcn AI skill definitions added - deprecated/ removed (auth, auth-firebase, cli, www) Preserved Hanzo-only paths: app/, pkg/, demo/, docs/, template/next/
42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
import js from "@eslint/js"
|
|
import eslintConfigPrettier from "eslint-config-prettier"
|
|
import pluginReact from "eslint-plugin-react"
|
|
import pluginReactHooks from "eslint-plugin-react-hooks"
|
|
import globals from "globals"
|
|
import tseslint from "typescript-eslint"
|
|
|
|
import { config as baseConfig } from "./base.js"
|
|
|
|
/**
|
|
* A custom ESLint configuration for libraries that use React.
|
|
*
|
|
* @type {import("eslint").Linter.Config} */
|
|
export const config = [
|
|
...baseConfig,
|
|
js.configs.recommended,
|
|
eslintConfigPrettier,
|
|
...tseslint.configs.recommended,
|
|
pluginReact.configs.flat.recommended,
|
|
{
|
|
languageOptions: {
|
|
...pluginReact.configs.flat.recommended.languageOptions,
|
|
globals: {
|
|
...globals.serviceworker,
|
|
...globals.browser,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
plugins: {
|
|
"react-hooks": pluginReactHooks,
|
|
},
|
|
settings: { react: { version: "detect" } },
|
|
rules: {
|
|
...pluginReactHooks.configs.recommended.rules,
|
|
// React scope no longer necessary with new JSX transform.
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/prop-types": "off",
|
|
},
|
|
},
|
|
]
|