mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 13:09:21 +01:00
build: extend yamllint configuration
This makes the configuration of yamllint stricter. For example, single quote is imposed and only when necessary. PR-URL: https://github.com/nodejs/node/pull/41756 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
This commit is contained in:
parent
8e653d9898
commit
4c4bd1c6db
@ -1,9 +1,40 @@
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
document-start:
|
||||
braces:
|
||||
min-spaces-inside: 0
|
||||
max-spaces-inside: 1
|
||||
min-spaces-inside-empty: 0
|
||||
max-spaces-inside-empty: 0
|
||||
|
||||
brackets:
|
||||
min-spaces-inside: 0
|
||||
max-spaces-inside: 1
|
||||
min-spaces-inside-empty: 0
|
||||
max-spaces-inside-empty: 0
|
||||
|
||||
comments-indentation:
|
||||
level: error
|
||||
|
||||
document-end:
|
||||
present: false
|
||||
|
||||
document-start:
|
||||
level: error
|
||||
present: false
|
||||
|
||||
empty-lines:
|
||||
max: 1
|
||||
|
||||
indentation:
|
||||
spaces: 2
|
||||
|
||||
line-length: disable
|
||||
|
||||
quoted-strings:
|
||||
quote-type: single
|
||||
required: only-when-needed
|
||||
|
||||
truthy:
|
||||
allowed-values: ['true', 'false', 'on', 'off']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user