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

Prettier All In One

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 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-11-30 14:32  xgqfrms  阅读(87)  评论(5编辑  收藏  举报