* Checks files for formatting (and optionally fixes them) with Prettier. * Explicitly makes sure the API doesn't check files in `.prettierignore`. * @return {Promise }
()
| 32 | * @return {Promise<void>} |
| 33 | */ |
| 34 | async function prettify() { |
| 35 | const filesToCheck = getFilesToCheck( |
| 36 | prettifyGlobs, |
| 37 | {dot: true}, |
| 38 | '.prettierignore' |
| 39 | ); |
| 40 | if (filesToCheck.length == 0) { |
| 41 | return; |
| 42 | } |
| 43 | await runPrettify(filesToCheck); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Resolves the prettier config for the given file |
nothing calls this directly
no test coverage detected