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

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

24 lines
347 B
JavaScript
Raw Normal View History

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