From aa7c1ba961c74c54a8fb57097b16b53b9d2c39c6 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 19 Jul 2022 17:05:26 +0100 Subject: [PATCH] Make yamllint rule compatible with prettier (#1104) Adapts yamllint config to not require two char indentation for inline comments as that is in conflict with prettier formatting. Ansible-lint also does the same override for compatibility issues, especially as many users use format-on-save. Reference: https://github.com/ansible/ansible-lint/blob/679ffc04c8ab84ee417cf6eec10868b06fc246eb/src/ansiblelint/yaml_utils.py#L52-L54 --- .yamllint | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.yamllint b/.yamllint index a1c5681df..41966bfa6 100644 --- a/.yamllint +++ b/.yamllint @@ -10,6 +10,8 @@ rules: brackets: max-spaces-inside: 1 level: error + comments: + min-spaces-from-content: 1 # prettier compatibility line-length: disable document-start: disable truthy: