Skip to content

Commit 257495a

Browse files
committed
fix: require prettier-plugin-jsdoc
1 parent 16e61a3 commit 257495a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prettier.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
// Modified from https://github.com/matzkoh/prettier-plugin-packagejson to use the custom sort-package.json package
12
function prettier_plugin_packagejson() {
2-
// Modified from https://github.com/matzkoh/prettier-plugin-packagejson to use the custom sort-package.json package
33
function requireSafe(path) {
44
try {
55
return require(path)
@@ -30,7 +30,7 @@ function prettier_plugin_packagejson() {
3030
}
3131

3232
module.exports = {
33-
plugins: ["prettier-plugin-jsdoc", prettier_plugin_packagejson()],
33+
plugins: [require("prettier-plugin-jsdoc"), prettier_plugin_packagejson()],
3434
tabWidth: 2,
3535
printWidth: 120,
3636
semi: false,

0 commit comments

Comments
 (0)