* Implement prettier.getFileInfo() method and --file-info CLI option * Add empty line between functions in index.js * Support --plugin-search-dirs / pluginSearchDirs() in --file-info / getFileInfo() * Address review comments by @ikatyang
25 lines
395 B
JavaScript
25 lines
395 B
JavaScript
"use strict";
|
|
|
|
const concat = require("../../../../../../src/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])
|
|
}
|
|
}
|
|
};
|