Skip to content

Commit 4325c7d

Browse files
authored
Auto-fix linting and remove line length linting (#1020)
* auto-fix markdownlint issues on save * Add to README * remove line size from markdown linting
1 parent f7c2ca6 commit 4325c7d

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.github/linters/.markdownlint.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
# Rules by id #
2020
###############
2121
MD024: false
22-
MD013:
23-
line_length: 120
24-
code_blocks: false
25-
tables: false
22+
MD013: false
2623
MD026: false
2724
MD046: false # Mix of indented and fenced code blocks
2825
MD004: false

.markdownlintrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"MD024": false,
3-
"MD013": {
4-
"line_length": 123,
5-
"code_blocks": false,
6-
"tables": false
7-
8-
},
3+
"MD013": false,
94
"MD026": false,
105
"MD046": false,
116
"MD004": false

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
"editor.wrappingIndent": "same",
2121
"editor.wordWrapColumn": 120,
2222
"editor.rulers": [120],
23+
"editor.codeActionsOnSave": {
24+
"source.fixAll.markdownlint": "always"
25+
}
2326
}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ We'll be working on follow-ups to make this more user-friendly, but it's now wor
3535
* Open the root of the project (`/`, not `/docs`)
3636
* Run `markdownlint-cli2 --config ".github/linters/.markdownlint.yml" "docs/**/*.md"`
3737

38+
We recommend adding the following settings to your VSCode environment if they don't come through in the repository:
39+
40+
```json
41+
"editor.codeActionsOnSave": {
42+
"source.fixAll.markdownlint": "always"
43+
}
44+
```
45+
46+
This will fix 80% of the markdown linting issues for you upon save.
47+
3848
We'd love your contributions! See [The contributing guide](CONTRIBUTING.md) for how to get involved.
3949

4050
## Building the API docs locally

0 commit comments

Comments
 (0)