UNPKG

@swissquote/eslint-plugin-swissquote

Version:

- Provide a style guide for your JavaScript - Warns on common mistakes in JavaScript - Works with EcmaScript 2015+

20 lines (19 loc) 497 B
import { getFileInfo, format } from "../dist/prettier/index.mjs"; export default { /** * @param {string} path * @param {any} config * @returns {Promise<{ ignored: boolean, inferredParser: string }>} */ getFileInfo(path, config) { return getFileInfo(path, config); }, /** * @param {string} source * @param {any} options * @returns {Promise<string>} */ format(source, options) { return format(source, options); } }