From 8bc72cd4844ce2e7bb224a00dbaf7117efd81269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20B=C3=B6hm?= Date: Wed, 21 Sep 2022 07:52:10 +0200 Subject: [PATCH] feat(prettier): use spaces in yaml files (#52) Use spaces in YAML files. --- .changeset/stupid-mice-trade.md | 5 +++++ .editorconfig | 4 ++++ .github/workflows/check.yml | 4 ++++ packages/prettier-config/src/index.ts | 1 + 4 files changed, 14 insertions(+) create mode 100644 .changeset/stupid-mice-trade.md diff --git a/.changeset/stupid-mice-trade.md b/.changeset/stupid-mice-trade.md new file mode 100644 index 0000000..650914a --- /dev/null +++ b/.changeset/stupid-mice-trade.md @@ -0,0 +1,5 @@ +--- +'@mheob/prettier-config': minor +--- + +Use spaces instead of tabs in yaml files diff --git a/.editorconfig b/.editorconfig index 68c0c4d..13a8b2f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,3 +12,7 @@ trim_trailing_whitespace = true [*.md] max_line_length = off trim_trailing_whitespace = false + +[*.{yml,yaml}] +max_line_length = off +indent_style = space diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 601a6b7..0b7cdfb 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -2,7 +2,11 @@ name: Check on: pull_request: + branches: + - main push: + branches: + - main jobs: release: diff --git a/packages/prettier-config/src/index.ts b/packages/prettier-config/src/index.ts index 59f8279..f5aefd0 100644 --- a/packages/prettier-config/src/index.ts +++ b/packages/prettier-config/src/index.ts @@ -32,6 +32,7 @@ const options: Config = { options: { printWidth: 130, singleQuote: false, + useTabs: false, }, }, {