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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
440 B
JavaScript
Raw Normal View History

2022-08-06 10:42:27 +08:00
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;