如何解决为什么 Prettier 不遵循我的 .prettierrc.json 文件?
已编辑:我正在尝试为 prettierrc.json 设置自定义规则,它在输出中显示另一个值。我试图改变的每一条规则都会发生这种情况
那是我的 .prettierrc.json
{
"useTabs": false,"tabWidth": 2,"semi": true,"singleQuote": false,//// my custom value
"arrowParens": "avoid","trailingComma": "none","endOfLine": "auto"
}
它显示在控制台中
["INFO" - 16:33:14] Formatting c:\Users\User\Desktop\repos\boludeces\.prettierrc.json
["INFO" - 16:33:14] Using config file at 'c:\Users\User\Desktop\repos\boludeces\.prettierrc.json'
["INFO" - 16:33:14] Using ignore file (if present) at c:\Users\User\Desktop\repos\boludeces\.prettierignore
["INFO" - 16:33:14] File Info:
{
"ignored": false,"inferredParser": "json"
}
["INFO" - 16:33:14] Detected local configuration (i.e. .prettierrc or .editorconfig),VS Code configuration will not be used
["INFO" - 16:33:14] Prettier Options:
{
"filepath": "c:\\Users\\User\\Desktop\\repos\\boludeces\\.prettierrc.json","parser": "json","useTabs": false,"semi": false,"singleQuote": true,// the output value
"arrowParens": "avoid","endOfLine": "auto"
}
["INFO" - 16:33:14] Formatting completed in 12.8338ms.
怎么了?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。