-
Notifications
You must be signed in to change notification settings - Fork 2
/
.prettierrc.mjs
37 lines (37 loc) · 968 Bytes
/
.prettierrc.mjs
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
/** @type {import("prettier").Config} */
export default {
printWidth: 100,
semi: true,
singleQuote: false,
tabWidth: 2,
trailingComma: "all",
useTabs: true,
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
overrides: [
{
files: [".*", "*.md", "*.toml", "*.yml"],
options: {
useTabs: false,
},
},
{
files: ["**/*.mdx"],
options: {
/**
* feel free to change this. Keystatic expects a certain format for JSX components in MDX files
* and me setting this to 80 forces my demo files to work correctly
* I suggest EITHER using keystatic for all blog posts, OR using MD/MDX for all blog posts
*
* IF using keystatic, I recommend uncommenting the MDX formatting line in .prettierignore
*/
printWidth: 80,
},
},
{
files: ["**/*.astro"],
options: {
parser: "astro",
},
},
],
};