Files
test-repo/tests/integration/plugins/automatic/node_modules/@prettier/plugin-foo/index.js
T

25 lines
347 B
JavaScript

"use strict";
module.exports = {
languages: [
{
name: "foo",
parsers: ["foo"],
extensions: [".foo"],
},
],
parsers: {
foo: {
parse: text => ({ text }),
astFormat: "foo",
},
},
printers: {
foo: {
print(path) {
return ["foo+", path.getValue().text];
},
},
},
};