* Resolves the prettier config for the given file * @param {string} file * @return {Promise }
(file)
| 49 | * @return {Promise<Object>} |
| 50 | */ |
| 51 | async function getOptions(file) { |
| 52 | const config = await prettier.resolveConfig(file); |
| 53 | return {filepath: file, ...config}; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Prints an error message with recommended fixes (in diff form) for a file with |
no test coverage detected