Skip to content

Commit

Permalink
Make yamllint rule compatible with prettier (#1104)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ssbarnea committed Jul 19, 2022
1 parent e6c1a3c commit aa7c1ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .yamllint
Expand Up @@ -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:
Expand Down

0 comments on commit aa7c1ba

Please sign in to comment.