From 68a5b58c2dc8df50d6a5a49c8aa40fa9cc3c3b7d Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 27 Jan 2022 21:26:03 +0100 Subject: [PATCH] feat(ng-dev): format json files by default with prettier Self-explanatory! --- ng-dev/format/formatters/prettier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ng-dev/format/formatters/prettier.ts b/ng-dev/format/formatters/prettier.ts index 4045db276..3d83902d7 100644 --- a/ng-dev/format/formatters/prettier.ts +++ b/ng-dev/format/formatters/prettier.ts @@ -21,7 +21,7 @@ export class Prettier extends Formatter { override binaryFilePath = join(this.git.baseDir, 'node_modules/.bin/prettier'); - override defaultFileMatcher = ['**/*.{t,j,cj,mj}s']; + override defaultFileMatcher = ['**/*.{js,cjs,mjs}', '**/*.{ts,cts,mts}', '**/*.json']; /** * The configuration path of the prettier config, obtained during construction to prevent needing