Skip to content

Commit 5647b57

Browse files
authored
fix: create initial prettier config matching the content of the generated files (#4)
1 parent 2d17e0d commit 5647b57

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,13 @@ export default function createConfig ({
143143
}
144144
if (needsPrettier) {
145145
// Prettier recommends an explicit configuration file to let the editor know that it's used.
146-
files['.prettierrc.json'] = prettierrcs[styleGuide] || '{}'
146+
files['.prettierrc.json'] = prettierrcs[styleGuide] || `{
147+
"semi": false,
148+
"tabWidth": 2,
149+
"singleQuote": true,
150+
"printWidth": 100,
151+
"trailingComma": "none"
152+
}`
147153
}
148154

149155
return {

0 commit comments

Comments
 (0)