From 3dc6e5ac904f1a6dbcd3dbd0554d53ccbd5e78f0 Mon Sep 17 00:00:00 2001 From: Sam Van Campenhout Date: Mon, 24 Oct 2022 21:11:02 +0200 Subject: [PATCH] Update the Prettier config in the blueprints This updates the `.prettierrc.js` file so that it only applies the singleQuote config to `.js` (and `.ts`) files. This has the benefit that other file types will still use the default Prettier settings and apps no longer have to add config overrides to ensure that. --- blueprints/app/files/.prettierrc.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/blueprints/app/files/.prettierrc.js b/blueprints/app/files/.prettierrc.js index 534e6d35aa..e5f7b6d1ee 100644 --- a/blueprints/app/files/.prettierrc.js +++ b/blueprints/app/files/.prettierrc.js @@ -1,5 +1,12 @@ 'use strict'; module.exports = { - singleQuote: true, + overrides: [ + { + files: '*.{js,ts}', + options: { + singleQuote: true, + }, + }, + ], };