From 6996ea40143cd7adbd189a1ef264f71b16a87e70 Mon Sep 17 00:00:00 2001 From: Jonathan Ruddell Date: Tue, 17 Mar 2020 12:07:02 -0400 Subject: [PATCH] run prettier on all generated entity files --- src/entity/files.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entity/files.js b/src/entity/files.js index 47f3047ba..f7a69a686 100644 --- a/src/entity/files.js +++ b/src/entity/files.js @@ -426,7 +426,7 @@ export const ${camelCase(props.name)}EntityEditScreen = data => insert: entityScreenImport, }) - // todo run prettier on + // run prettier on generated files const filesToRunPrettierOn = [ { target: 'app/shared/services/api.js' }, { target: 'app/shared/services/fixture-api.js' }, @@ -434,6 +434,8 @@ export const ${camelCase(props.name)}EntityEditScreen = data => { target: 'app/shared/reducers/index.js' }, { target: 'app/navigation/layouts.js' }, { target: 'app/modules/entities/entities-screen.js' }, + ...entityFiles ] + await prettierTransformBatch(filesToRunPrettierOn) }