Skip to content

Commit bd87058

Browse files
committed
Fix issue onwidget#85: prettier configuration to format .astro files
1 parent cf52e08 commit bd87058

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.prettierrc

-8
This file was deleted.

.prettierrc.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/** @type {import('prettier').Config} */
2+
module.exports = {
3+
printWidth: 120,
4+
semi: true,
5+
singleQuote: true,
6+
tabWidth: 2,
7+
trailingComma: 'es5',
8+
useTabs: false,
9+
10+
plugins: [require.resolve('prettier-plugin-astro')],
11+
12+
overrides: [{ files: '*.astro', options: { parser: 'astro' } }],
13+
};

0 commit comments

Comments
 (0)