summaryrefslogtreecommitdiff
path: root/prettier.config.js
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2023-09-06 10:23:44 -0500
committerGravatar GitHub <noreply@github.com> 2023-09-06 10:23:44 -0500
commitc06b41a6b86a41ba4b1ffa4bdecafac9b7299768 (patch)
treebf8ce67b6d37ae74b1def219980335feca3cc824 /prettier.config.js
parent14273d8f448d2f0daac5e1563131b093b5aa1da3 (diff)
downloadastro-c06b41a6b86a41ba4b1ffa4bdecafac9b7299768.tar.gz
astro-c06b41a6b86a41ba4b1ffa4bdecafac9b7299768.tar.zst
astro-c06b41a6b86a41ba4b1ffa4bdecafac9b7299768.zip
Update Prettier (#8420)
* chore: fix prettier config * chore: format * chore(prettier): format `.astro` files
Diffstat (limited to 'prettier.config.js')
-rw-r--r--prettier.config.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/prettier.config.js b/prettier.config.js
new file mode 100644
index 000000000..b28486608
--- /dev/null
+++ b/prettier.config.js
@@ -0,0 +1,24 @@
+/** @type {import("prettier").Config} */
+export default {
+ printWidth: 100,
+ semi: true,
+ singleQuote: true,
+ tabWidth: 2,
+ trailingComma: 'es5',
+ useTabs: true,
+ plugins: ['prettier-plugin-astro'],
+ overrides: [
+ {
+ files: ['.*', '*.json', '*.md', '*.toml', '*.yml'],
+ options: {
+ useTabs: false,
+ },
+ },
+ {
+ files: ['**/*.astro'],
+ options: {
+ parser: 'astro',
+ },
+ },
+ ],
+};