Skip to content

Commit

Permalink
run prettier on all generated entity files
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddell committed Mar 26, 2020
1 parent aa33021 commit 6996ea4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entity/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,16 @@ 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' },
{ target: 'app/shared/sagas/index.js' },
{ target: 'app/shared/reducers/index.js' },
{ target: 'app/navigation/layouts.js' },
{ target: 'app/modules/entities/entities-screen.js' },
...entityFiles
]

await prettierTransformBatch(filesToRunPrettierOn)
}

0 comments on commit 6996ea4

Please sign in to comment.