aboutsummaryrefslogtreecommitdiff
path: root/.prettierrc.mjs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-05 00:16:37 +0300
committerValentin Popov <valentin@popov.link>2024-09-05 00:16:37 +0300
commit7eff3fde5720eb23449e2f8c8ea0b8218efe4dde (patch)
treefbaedd693902c1a6d56a005b28b189ef76fe23f4 /.prettierrc.mjs
parentecf9a15e77509d344ab4ee02ae0dbf8a116021f1 (diff)
downloadpopov.link-7eff3fde5720eb23449e2f8c8ea0b8218efe4dde.tar.xz
popov.link-7eff3fde5720eb23449e2f8c8ea0b8218efe4dde.zip
Initial Astro project
Diffstat (limited to '.prettierrc.mjs')
-rw-r--r--.prettierrc.mjs44
1 files changed, 44 insertions, 0 deletions
diff --git a/.prettierrc.mjs b/.prettierrc.mjs
new file mode 100644
index 0000000..4933b7a
--- /dev/null
+++ b/.prettierrc.mjs
@@ -0,0 +1,44 @@
+export default {
+ arrowParens: "always",
+ bracketSameLine: false,
+ bracketSpacing: true,
+ embeddedLanguageFormatting: "auto",
+ endOfLine: "lf",
+ htmlWhitespaceSensitivity: "ignore",
+ insertPragma: false,
+ jsxSingleQuote: false,
+ overrides: [
+ {
+ files: "*.astro",
+ options: {
+ parser: "astro",
+ },
+ },
+ {
+ files: "*.json",
+ options: {
+ tabWidth: 2,
+ useTabs: false,
+ },
+ },
+ {
+ files: "*.yml",
+ options: {
+ tabWidth: 2,
+ useTabs: false,
+ },
+ },
+ ],
+ plugins: ["prettier-plugin-astro"],
+ printWidth: 120,
+ proseWrap: "never",
+ quoteProps: "consistent",
+ requirePragma: false,
+ semi: true,
+ singleAttributePerLine: false,
+ singleQuote: false,
+ tabWidth: 4,
+ trailingComma: "es5",
+ useTabs: true,
+ vueIndentScriptAndStyle: false,
+};