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

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

26 lines
402 B
JavaScript
Raw Normal View History

"use strict";
module.exports = {
languages: [
{
name: "bar",
2022-07-20 23:18:24 +08:00
parsers: ["bar"],
},
],
parsers: {
bar: {
parse: text => ({ text }),
2022-07-20 23:18:24 +08:00
astFormat: "bar",
},
},
printers: {
bar: {
2022-07-20 23:18:24 +08:00
print(path) {
return ["content from `prettier-plugin-bar` package + ", path.getValue().text];
},
},
},
defaultOptions: {
2022-07-20 23:18:24 +08:00
tabWidth: 4,
},
};