Skip to content

Commit

Permalink
build: extend yamllint configuration
Browse files Browse the repository at this point in the history
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 <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
  • Loading branch information
Mesteery authored and bengl committed Feb 21, 2022
1 parent a1a91d9 commit eb58753
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,40 @@
extends: default

rules:
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']

Expand Down

0 comments on commit eb58753

Please sign in to comment.