1234567891011121314151617181920212223242526 |
- "use strict";
- const prettier = require("prettier/local");
- const concat = prettier.doc.builders.concat;
- module.exports = {
- languages: [
- {
- name: "foo",
- parsers: ["foo-parser"],
- extensions: [".foo"]
- }
- ],
- parsers: {
- "foo-parser": {
- parse: text => ({ text }),
- astFormat: "foo-ast"
- }
- },
- printers: {
- "foo-ast": {
- print: path => concat(["!", path.getValue().text])
- }
- }
- };
|