Skip to content

Commit

Permalink
add prettier config management (#20)
Browse files Browse the repository at this point in the history
* Create .prettierrc.yaml

* Update config.yaml

* Rename .prettierrc.yaml to prettierrc.yml

* Update config.yaml
  • Loading branch information
altendky authored Jul 15, 2024
1 parent d5d82ab commit 48c047e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 14 additions & 0 deletions templates/prettierrc.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 48c047e

Please sign in to comment.