Skip to content

Instantly share code, notes, and snippets.

@shuiRong
Created March 23, 2021 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuiRong/c32034f4212da966cc3935604bad57ef to your computer and use it in GitHub Desktop.
Save shuiRong/c32034f4212da966cc3935604bad57ef to your computer and use it in GitHub Desktop.
Prettier 和 vscode settings.json 配置的关联
配置 Prettier 规则的地方有好几个,比如可以在 `.vscode/settings.json` 里,也可在项目根目录下的 `.prettierrc`文件里,但如果后者存在(就算空白没东西),
那么 Prettier 将不会尝试从 settings.json 里读取任何配置。
P.S. 这不是前者覆盖后者的关系。是如果有这个配置文件,另一个就没用的关系。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment