mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-02-09 02:49:29 +08:00
* feat: add v3 * feat: upgrade lucide-react * feat: upgrade components to Tailwind v4 * feat(v3): add dark mode * wip * feat: components upgrade * style: format * feat: add select * feat: more components * feat: more components * fix: shadow * feat: upgrade sidebar * refactor: registry * refactor: internal * fix: registry * fix: charts * chore: build registry * fix: charts * feat: form * feat: clean up * fix: icons * fix: command demo * chore: add new-york-v4 to registry * fix: revert command in www registry * fix * chore: fix tests * fix: types * fix: lint errors * chore: build v4 registry * fix * fix: types
37 lines
899 B
JavaScript
37 lines
899 B
JavaScript
/** @type {import('prettier').Config} */
|
|
module.exports = {
|
|
endOfLine: "lf",
|
|
semi: false,
|
|
singleQuote: false,
|
|
tabWidth: 2,
|
|
trailingComma: "es5",
|
|
importOrder: [
|
|
"^(react/(.*)$)|^(react$)",
|
|
"^(next/(.*)$)|^(next$)",
|
|
"<THIRD_PARTY_MODULES>",
|
|
"",
|
|
"^@workspace/(.*)$",
|
|
"",
|
|
"^types$",
|
|
"^@/types/(.*)$",
|
|
"^@/config/(.*)$",
|
|
"^@/lib/(.*)$",
|
|
"^@/hooks/(.*)$",
|
|
"^@/components/ui/(.*)$",
|
|
"^@/components/(.*)$",
|
|
"^@/registry/(.*)$",
|
|
"^@/styles/(.*)$",
|
|
"^@/app/(.*)$",
|
|
"^@/www/(.*)$",
|
|
"",
|
|
"^[./]",
|
|
],
|
|
importOrderSeparation: false,
|
|
importOrderSortSpecifiers: true,
|
|
importOrderBuiltinModulesToTop: true,
|
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
|
importOrderMergeDuplicateImports: true,
|
|
importOrderCombineTypeAndValueImports: true,
|
|
plugins: ["@ianvs/prettier-plugin-sort-imports"],
|
|
}
|