Skip to content

Commit 77a85e8

Browse files
committed
chore: fix eslint errors
1 parent 816ed2a commit 77a85e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

prettier.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ function prettier_plugin_packagejson() {
33
function requireSafe(path) {
44
try {
55
return require(path)
6-
} catch (error) {}
6+
} catch (error) {
7+
// no operations
8+
}
79
}
810

911
const { parsers } = requireSafe("prettier/parser-babel") || requireSafe("prettier/parser-babylon")
@@ -14,7 +16,8 @@ function prettier_plugin_packagejson() {
1416
parsers: {
1517
"json-stringify": {
1618
...parser,
17-
preprocess(text, options) {
19+
preprocess(text_given, options) {
20+
let text = text_given
1821
if (parser.preprocess) {
1922
text = parser.preprocess(text, options)
2023
}

0 commit comments

Comments
 (0)