mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
13 lines
283 B
JavaScript
13 lines
283 B
JavaScript
import createPlugin from "../../utilities/create-plugin.cjs";
|
|
|
|
const plugin = createPlugin({
|
|
name: "uppercase-rocks",
|
|
print: (text, options) =>
|
|
(options.parentParser && text.startsWith("\n")
|
|
? text.slice(1)
|
|
: text
|
|
).toUpperCase(),
|
|
});
|
|
|
|
export default plugin;
|