Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 57339a7

Browse files
author
Jacob
committed
Prettier replace of markdownlint
- Markdownlint required a global or NPX implementation in CI - Prettier configs tweaked to minimize changes to Markdown docs
1 parent f4cdd18 commit 57339a7

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/typechecks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
node-version: 16.7
1717

18-
- run: npm run markdownlint
18+
- run: npm run prettier:md
1919
test:
2020
name: 'Typechecking'
2121
runs-on: ubuntu-latest

.prettierrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{
2-
"printWidth": 120,
3-
"proseWrap": "always"
2+
"proseWrap": "never"
43
}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"export:docs": "node -r esbuild-register export/docs.ts",
1515
"export:overrides": "node -r esbuild-register export/overrides.ts",
16-
"markdownlint": "npx markdownlint-cli '**/*.md' -i node_modules -i LICENSE.md",
16+
"prettier:md": "prettier --write --prose-wrap never --parser markdown '**/*.md' --ignore-path ./LICENSE.md",
1717
"test": "tsc"
1818
},
1919
"author": "Cloudflare Workers Team <[email protected]> (https://workers.cloudflare.com)",
@@ -25,7 +25,7 @@
2525
"esbuild": "^0.12.22",
2626
"esbuild-register": "^3.0.0",
2727
"marked": "^3.0.2",
28-
"prettier": "2.0.5",
28+
"prettier": "^2.0.5",
2929
"typescript": "^4.3.5"
3030
}
3131
}

0 commit comments

Comments
 (0)