Files
test-repo/tests/integration/plugins/automatic/prettier-plugin-baz.js
T

30 lines
440 B
JavaScript

const plugin = {
languages: [
{
name: "baz",
parsers: ["baz"],
},
],
parsers: {
baz: {
parse: text => ({ text }),
astFormat: "baz",
},
},
printers: {
baz: {
print(path) {
return [
"content from `prettier-plugin-baz.js` file + ",
path.getValue().text,
];
},
},
},
defaultOptions: {
tabWidth: 4,
},
};
export default plugin;