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) 512 B
const prettier = require("../dist/prettier2/index.js"); module.exports = { /** * @param {string} path * @param {any} config * @returns {Promise<{ ignored: boolean, inferredParser: string }>} */ getFileInfo(path, config) { return prettier.getFileInfo.sync(path, config); }, /** * @param {string} source * @param {any} options * @returns {Promise<string>} */ format(source, options) { return prettier.format(source, options); } }