From 48c047e95be1112a6b52e7f9bce88efb6a1b3c01 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Mon, 15 Jul 2024 15:41:11 -0400 Subject: [PATCH] add prettier config management (#20) * Create .prettierrc.yaml * Update config.yaml * Rename .prettierrc.yaml to prettierrc.yml * Update config.yaml --- config.yaml | 6 ++++++ templates/prettierrc.yml | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 templates/prettierrc.yml diff --git a/config.yaml b/config.yaml index eb2e821..4b89a2c 100644 --- a/config.yaml +++ b/config.yaml @@ -48,3 +48,9 @@ files: repo_path: .github/workflows/dependency-review.yml alternate_paths: - .github/workflows/dependency-review.yaml + + - name: prettier + template_name: prettierrc.yml + repo_path: .prettierrc.yml + alternate_paths: + - .prettierrc.yaml diff --git a/templates/prettierrc.yml b/templates/prettierrc.yml new file mode 100644 index 0000000..27a0fcf --- /dev/null +++ b/templates/prettierrc.yml @@ -0,0 +1,14 @@ +overrides: + - files: ["*.yaml", "*.yml", "*.toml", "*.json", "*.ini"] + options: + tabWidth: 2 + singleQuote: false + experimentalTernaries: true + useTabs: false + - files: ["*.md"] + options: + singleQuote: false + - files: ["*.js", "*.jsx", "*.ts", "*.tsx", "*.cjs", "*.mjs"] + options: + printWidth: 120 + singleQuote: true