eslint-plugin-prettierx
Version:
ESLint plugin to format your code with PrettierX
17 lines (15 loc) • 445 B
JavaScript
/**
* `getFileInfo` with support for more options inside the eslint config.
*
* @param {Prettier} prettier
* @param {string} filePath
* @param {PluginSettings} [options]
*/
const getFileInfo = (prettier, filePath, options) =>
prettier.getFileInfo.sync(filePath, {
resolveConfig: false,
ignorePath: options.ignorePath,
plugins: options.plugins,
withNodeModules: options.withNodeModules,
})
module.exports = getFileInfo