-
-
Save shuiRong/c32034f4212da966cc3935604bad57ef to your computer and use it in GitHub Desktop.
Prettier 和 vscode settings.json 配置的关联
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
配置 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