Skip to content

Commit 37a74d0

Browse files
authored
checks: add configuration files for yamllint and markdownlint (#3677)
Avoid discrepancy between super-linter and pre-commit settings.
1 parent 7e63c52 commit 37a74d0

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.markdownlint.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
3+
default: true

.pre-commit-config.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,3 @@ repos:
7070
rev: v1.29.0
7171
hooks:
7272
- id: yamllint
73-
args: [--format, parsable, --strict, -d,
74-
'{extends: default, rules: {truthy: disable,
75-
line-length: {max: 120, allow-non-breakable-words: true},
76-
comments: {min-spaces-from-content: 1}}}']

.yamllint

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
3+
extends: default
4+
5+
rules:
6+
comments:
7+
level: error
8+
min-spaces-from-content: 1
9+
document-start:
10+
level: error
11+
line-length:
12+
level: error
13+
max: 120
14+
allow-non-breakable-inline-mappings: true
15+
truthy: disable

0 commit comments

Comments
 (0)