Skip to content

Commit ab5e906

Browse files
authored
allow blog posts be in folders (#1714)
1 parent 8c3875a commit ab5e906

19 files changed

+322
-210
lines changed

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
public/
22
pnpm-lock.yaml
3+
*.mdx
4+
!src/pages/blog/2024-04-11-announcing-new-graphql-website/index.mdx
5+
*.jpg

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "next build && next-image-export-optimizer",
99
"dev": "next",
1010
"format": "pnpm format:check --write",
11-
"format:check": "prettier --cache --check \"**/*.{js,jsx,ts,tsx,cjs,mjs,json,yml,yaml,md}\"",
11+
"format:check": "prettier --cache --check .",
1212
"lint": "eslint --ignore-path .gitignore .",
1313
"postbuild": "next-sitemap",
1414
"start": "next start",

prettier.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ export default {
99
files: "*.svg",
1010
options: { parser: "html" },
1111
},
12+
{
13+
files: "*.mdx",
14+
options: {
15+
proseWrap: "always", // printWidth line breaks in md/mdx
16+
semi: false,
17+
trailingComma: "none",
18+
},
19+
},
1220
],
1321
plugins: [
1422
// For sort fields in package.json

0 commit comments

Comments
 (0)