Skip to content

Commit

Permalink
fix: create initial prettier config matching the content of the gener…
Browse files Browse the repository at this point in the history
…ated files (#4)
  • Loading branch information
LinusBorg authored Jan 26, 2023
1 parent 2d17e0d commit 5647b57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,13 @@ export default function createConfig ({
}
if (needsPrettier) {
// Prettier recommends an explicit configuration file to let the editor know that it's used.
files['.prettierrc.json'] = prettierrcs[styleGuide] || '{}'
files['.prettierrc.json'] = prettierrcs[styleGuide] || `{
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}`
}

return {
Expand Down

0 comments on commit 5647b57

Please sign in to comment.