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.

25 lines
451 B
JavaScript
Raw Normal View History

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