Add prettier for auto formatting 58/91958/7
authorThanh Ha <zxiiro@gmail.com>
Fri, 7 Aug 2020 15:21:48 +0000 (11:21 -0400)
committerThanh Ha <zxiiro@gmail.com>
Mon, 10 Aug 2020 14:17:39 +0000 (10:17 -0400)
commit935f3a20e0c58f292adf4b859458f94710b2f4ef
treec7ee14ad0f61c6a035c65f03602d15c8d7237759
parent5f2492cae9fcc63fc22648f7fb1a553513eb5cd2
Add prettier for auto formatting

It appears that we inconsistently use 2 and 4 space indents for YAML
however 2 space indents appear to be the dominant one in practice so
set config to that so that the least amount of changes happen when
prettier is applied.

This patch is also a preparation patch for RELENG-152 as the automation
we want to add for managing JJB updates when branch cutting requires
a consistent formatting of the YAML files so that auto-generated output
can match appropriately with minimal formatting changes.

Issue: RELENG-152
Change-Id: Ie35521de0378b7892f06ff7f36d470847c78989f
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
.editorconfig
.pre-commit-config.yaml
.yamllint