We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816ed2a commit 77a85e8Copy full SHA for 77a85e8
prettier.config.js
@@ -3,7 +3,9 @@ function prettier_plugin_packagejson() {
3
function requireSafe(path) {
4
try {
5
return require(path)
6
- } catch (error) {}
+ } catch (error) {
7
+ // no operations
8
+ }
9
}
10
11
const { parsers } = requireSafe("prettier/parser-babel") || requireSafe("prettier/parser-babylon")
@@ -14,7 +16,8 @@ function prettier_plugin_packagejson() {
14
16
parsers: {
15
17
"json-stringify": {
18
...parser,
- preprocess(text, options) {
19
+ preprocess(text_given, options) {
20
+ let text = text_given
21
if (parser.preprocess) {
22
text = parser.preprocess(text, options)
23
0 commit comments