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 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/14061187.html
未经授权禁止转载,违者必究!