From ccc076f6e4be885207324c1c4a652b35b93ad02b Mon Sep 17 00:00:00 2001 From: Thorsten Luenborg Date: Fri, 20 Jan 2023 21:28:25 +0100 Subject: [PATCH] fix: create initial prettier config matching the content of the generated files --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 9660945..83a50a1 100644 --- a/index.js +++ b/index.js @@ -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 {