xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Prettier All In One

.prettierrc.js / .prettierrc / .prettierrc.json

module.exports = {
  singleQuote: true,
  trailingComma: 'all',
}



{
  "arrowParens": "always",
  "bracketSpacing": true,
  "embeddedLanguageFormatting": "auto",
  "htmlWhitespaceSensitivity": "css",
  "insertPragma": false,
  "jsxBracketSameLine": false,
  "jsxSingleQuote": false,
  "printWidth": 80,
  "proseWrap": "preserve",
  "quoteProps": "as-needed",
  "requirePragma": false,
  "semi": true,
  "singleQuote": false,
  "tabWidth": 2,
  "trailingComma": "all",
  "useTabs": false,
  "vueIndentScriptAndStyle": false
}

https://prettier.io/playground/

https://prettier.io/docs/en/precommit.html

https://github.com/prettier/prettier

ESLint 冲突问题

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


原文地址:https://www.cnblogs.com/xgqfrms/p/14061187.html