Files
test-repo/tests/integration/plugins/bespoke/node_modules/@company/prettier-plugin-bespoke/main.js
T

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

23 lines
342 B
JavaScript
Raw Normal View History

"use strict";
module.exports = {
languages: [
{
name: "bespoke",
2022-07-20 23:18:24 +08:00
parsers: ["bespoke"],
},
],
parsers: {
bespoke: {
parse: text => ({ text }),
astFormat: "bespoke"
2022-07-20 23:18:24 +08:00
},
},
printers: {
bespoke: {
2022-07-20 23:18:24 +08:00
print(path) {
return ["bespoke+", path.getValue().text];
},
},
},
};