Skip to content

Commit

Permalink
Fix: Ensure Prettier formats json/yml properly
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Feb 1, 2022
1 parent f34774c commit d47eea8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-walls-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@zazen/cli': patch
---

Add JSON/YML formatting to default Prettier config
10 changes: 10 additions & 0 deletions src/config/prettier.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
module.exports = {
semi: false,
singleQuote: true,
useTabs: true,
overrides: [
{
files: ['*.json', '*.yml'],
options: {
tabWidth: 2,
useTabs: false,
},
},
],
}

0 comments on commit d47eea8

Please sign in to comment.