Skip to content

Commit c671247

Browse files
committed
restore max depth + prettier
1 parent 9bb4738 commit c671247

File tree

4 files changed

+48
-16
lines changed

4 files changed

+48
-16
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ indent_style = space
2020
indent_size = 2
2121

2222
[*.md]
23+
max_line_length = 80
2324
trim_trailing_whitespace = false
2425

2526
[*.neon]

.github/workflows/ci.yml

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,12 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
build:
13-
name: Lint
12+
proselint:
13+
name: Prose Lint
1414
runs-on: ubuntu-latest
15-
16-
permissions:
17-
contents: read
18-
packages: read
19-
statuses: write
20-
2115
steps:
22-
- name: Checkout
16+
- name: Checkout code
2317
uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
27-
- uses: DavidAnson/markdownlint-cli2-action@v21
28-
with:
29-
globs: '**/*.md'
3018

3119
- uses: actions/cache@v4
3220
with:
@@ -40,3 +28,40 @@ jobs:
4028

4129
- name: Run Proselint
4230
run: find . -name '*.md' -exec proselint {} \;
31+
lint:
32+
name: Lint
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v4
38+
39+
- uses: DavidAnson/markdownlint-cli2-action@v21
40+
with:
41+
globs: '**/*.md'
42+
43+
prettier-format:
44+
name: Prettier
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout code
48+
uses: actions/checkout@v4
49+
50+
- name: Setup Node.js
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: '20'
54+
55+
- name: Prettier Dry Run
56+
run: |
57+
npx prettier --check "**/*.md" || {
58+
echo "::error title=Formatting Failed::Some files are not formatted correctly."
59+
echo "-------------------------------------------------------"
60+
echo "❌ CHECK FAILED"
61+
echo "To fix these issues, run the following command locally:"
62+
echo ""
63+
echo " npx prettier --write \"**/*.md\" --prose-wrap always"
64+
echo ""
65+
echo "-------------------------------------------------------"
66+
exit 1
67+
}

.markdownlint.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
MD013:
3-
line_length: 400
3+
line_length: 80
4+
code_blocks: false
5+
tables: false
46
no-inline-html:
57
allowed_elements: [a, p, img, br, code-selector, video, source, iframe, h1]
68
MD046:

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"printWidth": 100,
3+
"proseWrap": "always"
4+
}

0 commit comments

Comments
 (0)