0

编辑:我正在尝试为 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,
  "tabWidth": 2,
  "semi": false,
  "singleQuote": true, // the output value
  "arrowParens": "avoid",
  "trailingComma": "none",
  "endOfLine": "auto"
}
["INFO" - 16:33:14] Formatting completed in 12.8338ms.

怎么了?

4

0 回答 0