Skip to content

Commit 0f8990d

Browse files
author
Maxime Mangel
authored
Merge pull request #3652 from fable-compiler/feature/markdownlint
2 parents acbde99 + 4494b09 commit 0f8990d

File tree

14 files changed

+574
-32
lines changed

14 files changed

+574
-32
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
indent_style = space
66
trim_trailing_whitespace = true
77
insert_final_newline = true
8+
indent_size = 4
89

910
# TS files
1011
[*.ts]

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121

2222
dotnet husky run --name fantomas-format-staged-files
2323
dotnet husky run --name ruff-format-staged-files
24+
dotnet husky run --name lint-markdown-staged-files

.husky/task-runner.json

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,44 @@
11
{
2-
"tasks": [
3-
{
4-
"name": "fantomas-format-staged-files",
5-
"group": "pre-commit-operations",
6-
"command": "dotnet",
7-
"args": [
8-
"fantomas",
9-
"${staged}"
10-
],
11-
"include": [
12-
"**/*.fs",
13-
"**/*.fsx",
14-
"**/*.fsi"
15-
]
16-
},
17-
{
18-
"name": "ruff-format-staged-files",
19-
"group": "pre-commit-operations",
20-
"command": "poetry",
21-
"args": [
22-
"run",
23-
"ruff",
24-
"format",
25-
"${staged}"
26-
],
27-
"include": [
28-
"**/*.py"
29-
]
30-
}
31-
]
2+
"tasks": [
3+
{
4+
"name": "fantomas-format-staged-files",
5+
"group": "pre-commit-operations",
6+
"command": "dotnet",
7+
"args": [
8+
"fantomas",
9+
"${staged}"
10+
],
11+
"include": [
12+
"**/*.fs",
13+
"**/*.fsx",
14+
"**/*.fsi"
15+
]
16+
},
17+
{
18+
"name": "ruff-format-staged-files",
19+
"group": "pre-commit-operations",
20+
"command": "poetry",
21+
"args": [
22+
"run",
23+
"ruff",
24+
"format",
25+
"${staged}"
26+
],
27+
"include": [
28+
"**/*.py"
29+
]
30+
},
31+
{
32+
"name": "lint-markdown-staged-files",
33+
"group": "pre-commit-operations",
34+
"command": "npx",
35+
"args": [
36+
"markdownlint-cli",
37+
"${staged}"
38+
],
39+
"include": [
40+
"**/*.md"
41+
]
42+
}
43+
]
3244
}

.markdownlint.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"MD024": false,
3+
"MD007": {
4+
"indent": 4
5+
},
6+
"MD038": false,
7+
"MD013": false
8+
}

0 commit comments

Comments
 (0)