Skip to content

Commit 4c4bd1c

Browse files
Mesteeryaduh95
authored andcommittedFeb 14, 2022
build: extend yamllint configuration
This makes the configuration of yamllint stricter. For example, single quote is imposed and only when necessary. PR-URL: nodejs#41756 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tierney Cyren <[email protected]>
1 parent 8e653d9 commit 4c4bd1c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
 

‎.yamllint.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,40 @@
11
extends: default
22

33
rules:
4+
braces:
5+
min-spaces-inside: 0
6+
max-spaces-inside: 1
7+
min-spaces-inside-empty: 0
8+
max-spaces-inside-empty: 0
9+
10+
brackets:
11+
min-spaces-inside: 0
12+
max-spaces-inside: 1
13+
min-spaces-inside-empty: 0
14+
max-spaces-inside-empty: 0
15+
16+
comments-indentation:
17+
level: error
18+
19+
document-end:
20+
present: false
21+
422
document-start:
23+
level: error
524
present: false
25+
26+
empty-lines:
27+
max: 1
28+
29+
indentation:
30+
spaces: 2
31+
632
line-length: disable
33+
34+
quoted-strings:
35+
quote-type: single
36+
required: only-when-needed
37+
738
truthy:
839
allowed-values: ['true', 'false', 'on', 'off']
940

0 commit comments

Comments
 (0)
Please sign in to comment.