1 Star 0 Fork 1

HXSecurity/DongTai-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.prettierrc.js 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
pixel 提交于 2021-08-02 16:27 . Revise the Chinese notes to English
module.exports = {
// Tab indent size, the default is 2
tabWidth: 2,
// Indent with tab. The default is false
// useTabs: true,
// Use semicolon. The default is true
semi: false,
// Use single quotation marks, and the default is false (the configuration in JSX is invalid, and the default is double quotation marks)
singleQuote: true,
//Comma at the end of the line, default to none, optional none | Es5 | all
//Es5 includes arrays and objects in Es5
//All includes all optional functions such as function objects
TrailingCooma: "none",
// The default value for spaces in objects is true
// true: { foo: bar }
// false: {foo: bar}
bracketSpacing: true,
// The JSX tag closing position defaults to false
// false: <div
// className=""
// style={{}}
// >
// true: <div
// className=""
// style={{}} >
jsxBracketSameLine: false,
//Arrow function parameter bracket default avoid optional avoid| always
//When avoid can omit parentheses, for example, x = > X
//Always has parentheses
arrowParens: 'always',
endOfLine: "auto"
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/HXSecurity/DongTai-web.git
[email protected]:HXSecurity/DongTai-web.git
HXSecurity
DongTai-web
DongTai-web
main

搜索帮助