summaryrefslogtreecommitdiff
path: root/.prettierrc.js
diff options
context:
space:
mode:
Diffstat (limited to '.prettierrc.js')
-rw-r--r--.prettierrc.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/.prettierrc.js b/.prettierrc.js
new file mode 100644
index 0000000..2d3bc3b
--- /dev/null
+++ b/.prettierrc.js
@@ -0,0 +1,23 @@
+/** @type {import("@types/prettier").Options} */
+module.exports = {
+ printWidth: 100,
+ semi: true,
+ singleQuote: false,
+ tabWidth: 2,
+ useTabs: true,
+ plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss" /* Must come last */],
+ overrides: [
+ {
+ files: "**/*.astro",
+ options: {
+ parser: "astro",
+ },
+ },
+ {
+ files: ["*.mdx", "*.md"],
+ options: {
+ printWidth: 80,
+ },
+ },
+ ],
+};