Skip to content

Instantly share code, notes, and snippets.

@agjs
Created January 29, 2024 20:53
Show Gist options
  • Save agjs/e1993d4b76e3ada5fd5463be27087efa to your computer and use it in GitHub Desktop.
Save agjs/e1993d4b76e3ada5fd5463be27087efa to your computer and use it in GitHub Desktop.
prettier
module.exports = {
arrowParens: "avoid",
bracketSpacing: true,
jsxSingleQuote: true,
printWidth: 80,
proseWrap: "always",
quoteProps: "as-needed",
semi: true,
singleQuote: false,
trailingComma: "none",
useTabs: false,
endOfLine: "auto",
importOrder: [
"<THIRD_PARTY_MODULES>",
"^Components/(.*)$",
"^Utils/(.*)$",
"^[./]"
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
plugins: [
require.resolve("@trivago/prettier-plugin-sort-imports"),
require.resolve("prettier-plugin-tailwindcss")
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment