Fix issue #85: prettier configuration to format .astro files

This commit is contained in:
prototypa
2023-01-11 18:35:44 -05:00
parent cf52e08b95
commit bd87058607
2 changed files with 13 additions and 8 deletions

View File

@ -1,8 +0,0 @@
{
"printWidth": 120,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}

13
.prettierrc.js Normal file
View File

@ -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' } }],
};