2018-01-05 21:09:51 +11:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
languages: [
|
|
|
|
|
{
|
|
|
|
|
name: "foo",
|
2018-05-09 17:53:44 +01:00
|
|
|
parsers: ["foo"],
|
2022-07-20 23:18:24 +08:00
|
|
|
extensions: [".foo"],
|
|
|
|
|
},
|
2018-01-05 21:09:51 +11:00
|
|
|
],
|
|
|
|
|
parsers: {
|
|
|
|
|
foo: {
|
|
|
|
|
parse: text => ({ text }),
|
2022-07-20 23:18:24 +08:00
|
|
|
astFormat: "foo",
|
|
|
|
|
},
|
2018-01-05 21:09:51 +11:00
|
|
|
},
|
|
|
|
|
printers: {
|
|
|
|
|
foo: {
|
2022-07-20 23:18:24 +08:00
|
|
|
async print(path) {
|
|
|
|
|
const { default: prettier } = await import(
|
|
|
|
|
"../../../../../../config/prettier-entry.js"
|
|
|
|
|
);
|
|
|
|
|
const { concat } = prettier.doc.builders;
|
|
|
|
|
return concat(["foo+", path.getValue().text]);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2018-01-05 21:09:51 +11:00
|
|
|
};
|