Files
test-repo/tests/config/prettier-plugins/prettier-plugin-missing-comments/index.cjs
T
2022-01-04 17:00:25 +08:00

28 lines
420 B
JavaScript

"use strict";
const name = "missing-comments";
module.exports = {
languages: [
{
name,
parsers: [name],
},
],
parsers: {
[name]: {
parse: (text) => ({ value: text, comments: [{ value: "comment" }] }),
astFormat: name,
locStart() {},
locEnd() {},
},
},
printers: {
[name]: {
print() {
return "comment not printed";
},
},
},
};