Files
test-repo/tests_integration/plugins/automatic/node_modules/@prettier/plugin-foo/index.js
T
Alexander Kachkaev cc734753fc Implement prettier.getFileInfo() method and --file-info CLI option (#4341)
* Implement prettier.getFileInfo() method and --file-info CLI option

* Add empty line between functions in index.js

* Support --plugin-search-dirs / pluginSearchDirs() in --file-info / getFileInfo()

* Address review comments by @ikatyang
2018-05-10 00:53:44 +08:00

25 lines
395 B
JavaScript

"use strict";
const concat = require("../../../../../../src/doc").builders.concat;
module.exports = {
languages: [
{
name: "foo",
parsers: ["foo"],
extensions: [".foo"]
}
],
parsers: {
foo: {
parse: text => ({ text }),
astFormat: "foo"
}
},
printers: {
foo: {
print: path => concat(["foo+", path.getValue().text])
}
}
};