.prettierrc
{
"arrowParens": "avoid",
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"jsxSingleQuote": true,
"htmlWhitespaceSensitivity": "ignore",
"printWidth": 100
}
vscode setting:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.validate": ["javascript"]
}
推荐阅读: