MCPcopy Index your code
hub / github.com/ampproject/amphtml / getOptions

Function getOptions

build-system/tasks/prettify.js:51–54  ·  view source on GitHub ↗

* Resolves the prettier config for the given file * @param {string} file * @return {Promise }

(file)

Source from the content-addressed store, hash-verified

49 * @return {Promise<Object>}
50 */
51async 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

Callers 2

runPrettifyFunction · 0.70

Calls 1

resolveConfigMethod · 0.80

Tested by

no test coverage detected