Skip to content

Commit

Permalink
Add more extensions to prettier in addition to .astro
Browse files Browse the repository at this point in the history
  • Loading branch information
luciodale committed Jul 18, 2022
1 parent ab661dd commit 311430b
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
module.exports = {
plugins: [require.resolve("prettier-plugin-astro")],
plugins: [require.resolve('prettier-plugin-astro')],
files: ['src/**/*.{html,js,jsx,md,ts,tsx}'],
semi: false,
singleQuote: true,
tabWidth: 2,
jsxSingleQuote: true,
trailingComma: 'none',
overrides: [
{
files: "*.astro",
files: '*.astro',
options: {
parser: "astro",
parser: 'astro',
semi: false,
singleQuote: true,
tabWidth: 2,
jsxSingleQuote: true,
trailingComma: "none",
},
},
],
};
trailingComma: 'none'
}
}
]
}

0 comments on commit 311430b

Please sign in to comment.