-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
285 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[*.{js,jsx,ts,tsx,vue}] | ||
indent_style = space | ||
indent_size = 2 | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/dist/* | ||
.local | ||
/node_modules/** | ||
|
||
**/*.svg | ||
**/*.sh | ||
|
||
/public/* | ||
stats.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* File: \.prettierrc.cjs | ||
* Project: rc-frontend | ||
* Created Date: 2024-04-12 00:50:29 | ||
* Author: Guoyi | ||
* ----- | ||
* Last Modified: 2024-04-12 00:51:16 | ||
* Modified By: Guoyi | ||
* ----- | ||
* Copyright (c) 2024 Guoyi Inc. | ||
* | ||
* ------------------------------------ | ||
*/ | ||
|
||
|
||
// @see: https://www.prettier.cn | ||
|
||
module.exports = { | ||
// 指定最大换行长度 | ||
printWidth: 130, | ||
// 缩进制表符宽度 | 空格数 | ||
tabWidth: 4, | ||
// 使用制表符而不是空格缩进行 (true:制表符,false:空格) | ||
useTabs: false, | ||
// 结尾不用分号 (true:有,false:没有) | ||
semi: true, | ||
// 使用单引号 (true:单引号,false:双引号) | ||
singleQuote: false, | ||
// 在对象字面量中决定是否将属性名用引号括起来 可选值 "<as-needed|consistent|preserve>" | ||
quoteProps: "as-needed", | ||
// 在JSX中使用单引号而不是双引号 (true:单引号,false:双引号) | ||
jsxSingleQuote: false, | ||
// 多行时尽可能打印尾随逗号 可选值"<none|es5|all>" | ||
trailingComma: "none", | ||
// 在对象,数组括号与文字之间加空格 "{ foo: bar }" (true:有,false:没有) | ||
bracketSpacing: true, | ||
// 将 > 多行元素放在最后一行的末尾,而不是单独放在下一行 (true:放末尾,false:单独一行) | ||
bracketSameLine: false, | ||
// (x) => {} 箭头函数参数只有一个时是否要有小括号 (avoid:省略括号,always:不省略括号) | ||
arrowParens: "avoid", | ||
// 指定要使用的解析器,不需要写文件开头的 @prettier | ||
requirePragma: false, | ||
// 可以在文件顶部插入一个特殊标记,指定该文件已使用 Prettier 格式化 | ||
insertPragma: false, | ||
// 用于控制文本是否应该被换行以及如何进行换行 | ||
proseWrap: "preserve", | ||
// 在html中空格是否是敏感的 "css" - 遵守 CSS 显示属性的默认值, "strict" - 空格被认为是敏感的 ,"ignore" - 空格被认为是不敏感的 | ||
htmlWhitespaceSensitivity: "css", | ||
// 控制在 Vue 单文件组件中 <script> 和 <style> 标签内的代码缩进方式 | ||
vueIndentScriptAndStyle: false, | ||
// 换行符使用 lf 结尾是 可选值 "<auto|lf|crlf|cr>" | ||
endOfLine: "auto", | ||
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码 (rangeStart:开始,rangeEnd:结束) | ||
rangeStart: 0, | ||
rangeEnd: Infinity | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.