This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/*
* .prettierrc.js
* Copyright (C) 2022 veypi <i@veypi.com>
*
* Distributed under terms of the Apache license.
*/
module.exports={
printWidth:100,//单行长度
tabWidth:2,//缩进长度
useTabs:false,//使用空格代替tab缩进
semi:false,//句末使用分号
singleQuote:true,//使用单引号
quoteProps:'as-needed',//仅在必需时为对象的key添加引号
jsxSingleQuote:true,// jsx中使用单引号
trailingComma:'all',//多行时尽可能打印尾随逗号
bracketSpacing:true,//在对象前后添加空格-eg: { foo: bar }
jsxBracketSameLine:true,//多属性html标签的‘>’折行放置
arrowParens:'always',//单参数箭头函数参数周围使用圆括号-eg: (x) => x