mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
fix: add plugin-search-dir in prettier write for pnpm
Fix error 'No parser could be inferred for file' (#34)
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@
|
|||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": [
|
"*": [
|
||||||
"prettier --write"
|
"prettier --plugin-search-dir=. --write"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user