Files
next-gdrive-index/.prettierrc.js
T
2024-05-18 15:18:03 +07:00

37 lines
950 B
JavaScript

"use strict";
module.exports = {
plugins: ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
printWidth: 120,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: false,
quoteProps: "consistent",
jsxSingleQuote: true,
trailingComma: "all",
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: "always",
proseWrap: "preserve",
htmlWhitespaceSensitivity: "css",
endOfLine: "lf",
embeddedLanguageFormatting: "auto",
singleAttributePerLine: true,
tailwindAttributes: ["classNames", "wrapperClassName", "rootClassName"],
tailwindFunctions: ["twsx", "cn"],
tailwindConfig: "./tailwind.config.ts",
importOrder: [
"<THIRD_PARTY_MODULES>",
"^~/(app|components)/(.*)$",
"^~/(utils|hooks|context)/(.*)$",
"^~/types/(.*)$",
"^~/(config|styles)/(.*)$",
"^(config|actions)$",
"^[./]",
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
};