-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.cjs
37 lines (35 loc) · 983 Bytes
/
.prettierrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const prettierPluginAstro = require.resolve('prettier-plugin-astro');
const prettierPluginTailwindcss = require('prettier-plugin-tailwindcss');
/** @type {import("@types/prettier").Options} */
module.exports = {
// Trailing commas help with git merging and conflict resolution
trailingComma: 'all',
// Why include an unnecessary character at the end of every line? Break the habit (automatically)!
semi: true,
singleQuote: true,
printWidth: 140,
endOfLine: 'auto',
plugins: [prettierPluginAstro, prettierPluginTailwindcss],
astroAllowShorthand: false,
overrides: [
{
files: '**/*.astro',
options: { parser: 'astro' },
},
{
files: '.editorconfig',
options: { parser: 'yaml' },
},
{
files: 'LICENSE',
options: { parser: 'markdown' },
},
{
files: ['*.json', '*.md', '*.toml', '*.yml'],
options: {
useTabs: false,
},
},
],
tailwindConfig: './tailwind.config.cjs',
};