Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
182 views
in Technique[技术] by (71.8m points)

How to disable use of package.json when using Prettier in vs code

I'm trying to set up Prettier with SVS Code, and it's throwing a parsing error while reading my package.json file. (Prettier is set up to look for Prettier configs in package.json.)

I'm using a non-npm framework that uses a file named package.npm for its own purposes. That file has (non-standard characters in it which are apparently upsetting Prettier's attempt to read it. I don't want that file looked at at all. How do I have Prettier ignore that file?

question from:https://stackoverflow.com/questions/65849555/how-to-disable-use-of-package-json-when-using-prettier-in-vs-code

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...