mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 01:41:37 +00:00
38 lines
852 B
JavaScript
38 lines
852 B
JavaScript
/** @type {import('prettier').Config} */
|
|
module.exports = {
|
|
endOfLine: "lf",
|
|
semi: false,
|
|
singleQuote: false,
|
|
tabWidth: 2,
|
|
trailingComma: "es5",
|
|
printWidth: 80,
|
|
importOrder: [
|
|
"^(react/(.*)$)|^(react$)",
|
|
"^(next/(.*)$)|^(next$)",
|
|
"<THIRD_PARTY_MODULES>",
|
|
"",
|
|
"^@workspace/(.*)$",
|
|
"",
|
|
"^types$",
|
|
"^@/types/(.*)$",
|
|
"^@/config/(.*)$",
|
|
"^@/lib/(.*)$",
|
|
"^@/hooks/(.*)$",
|
|
"^@/components/ui/(.*)$",
|
|
"^@/components/(.*)$",
|
|
"^@/registry/(.*)$",
|
|
"^@/styles/(.*)$",
|
|
"^@/app/(.*)$",
|
|
"^@/www/(.*)$",
|
|
"",
|
|
"^[./]",
|
|
],
|
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
|
plugins: [
|
|
"@ianvs/prettier-plugin-sort-imports",
|
|
"prettier-plugin-tailwindcss",
|
|
],
|
|
tailwindStylesheet: "./apps/v4/app/globals.css",
|
|
tailwindFunctions: ["cn", "cva"],
|
|
}
|