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

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

25 lines
472 B
JavaScript
Raw Normal View History

"use strict";
2022-05-10 15:42:11 +08:00
const prettier = require('../../../../../../config/prettier-entry.common.cjs');
const concat = prettier.doc.builders.concat;
module.exports = {
languages: [
{
name: "foobar",
parsers: ["foobar"],
extensions: [".foobar"]
}
],
parsers: {
foobar: {
parse: text => ({ text }),
astFormat: "foobar"
}
},
printers: {
foobar: {
print: path => concat(["foobar+", path.getValue().text])
}
}
};