Add a test with same packageName and fileName (#7517)
This commit is contained in:
1 parent
ada3d08df5
commit
bf6ceadb8b
3 files changed
+57
-9
No files matched your search
+6
-2
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
const prettier = require("prettier/local");
|
||||
const concat = prettier.doc.builders.concat;
|
||||
const { concat } = prettier.doc.builders;
|
||||
|
||||
module.exports = {
|
||||
languages: [
|
||||
@@ -18,7 +18,11 @@ module.exports = {
|
||||
},
|
||||
printers: {
|
||||
bar: {
|
||||
print: path => concat(["bar+", path.getValue().text])
|
||||
print: path =>
|
||||
concat([
|
||||
"content from `prettier-plugin-bar` package + ",
|
||||
path.getValue().text
|
||||
])
|
||||
}
|
||||
},
|
||||
defaultOptions: {
|
||||
|
||||
Reference in new issue
Block a user