Files
test-repo/tests_integration/plugins/automatic/node_modules/@prettier/plugin-foo/index.js
T
Lucas Azzola e5d6a4704f Automatically load plugins from package.json (#3624)
* Automatically load plugins from package.json

* Fix build by adding json extension

* Fixup misuse of options argument

* Rewire graceful-fs to fs

* Document graceful-fs issue

* Alias graceful-fs to fs in Rollup
2018-01-05 21:09:51 +11:00

24 lines
367 B
JavaScript

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