Skip to content

Commit

Permalink
Fix issue #85: prettier configuration to format .astro files
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Jan 11, 2023
1 parent cf52e08 commit bd87058
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

13 changes: 13 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import('prettier').Config} */
module.exports = {
printWidth: 120,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,

plugins: [require.resolve('prettier-plugin-astro')],

overrides: [{ files: '*.astro', options: { parser: 'astro' } }],
};

0 comments on commit bd87058

Please sign in to comment.