diff options
author | 2023-09-06 10:23:44 -0500 | |
---|---|---|
committer | 2023-09-06 10:23:44 -0500 | |
commit | c06b41a6b86a41ba4b1ffa4bdecafac9b7299768 (patch) | |
tree | bf8ce67b6d37ae74b1def219980335feca3cc824 /prettier.config.js | |
parent | 14273d8f448d2f0daac5e1563131b093b5aa1da3 (diff) | |
download | astro-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.js | 24 |
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', + }, + }, + ], +}; |