Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMestery <mestery@protonmail.com>2022-01-29 23:28:47 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2022-02-14 21:09:26 +0300
commit4c4bd1c6dbb6f173f29c0d0a074f1ba7a7d34c65 (patch)
treed0ea65d444150ef5fb6541d66437a54901746900 /.yamllint.yaml
parent8e653d9898613f9309c346c39507d262a52a65bf (diff)
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>
Diffstat (limited to '.yamllint.yaml')
-rw-r--r--.yamllint.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.yamllint.yaml b/.yamllint.yaml
index 97ec306ea3f..c8e63ec7220 100644
--- a/.yamllint.yaml
+++ b/.yamllint.yaml
@@ -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']