-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(projects): update tsconfig、eslintrc
- Loading branch information
1 parent
4093dcd
commit 75de2b0
Showing
131 changed files
with
1,172 additions
and
1,138 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,12 +1,11 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
|
||
# 表示是最顶层的 EditorConfig 配置文件 | ||
root = true | ||
|
||
[*] # 表示所有文件适用 | ||
charset = utf-8 # 设置文件字符集为 utf-8 | ||
indent_style = tab # 缩进风格(tab | space) | ||
indent_size = 2 # 缩进大小 | ||
end_of_line = lf # 控制换行类型(lf | cr | crlf) | ||
trim_trailing_whitespace = true # 去除行首的任意空白字符 | ||
insert_final_newline = true # 始终在文件末尾插入一个新行 | ||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 2 | ||
end_of_line = lf | ||
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
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 +1,2 @@ | ||
# 是否开启打包文件大小结果分析 | ||
VITE_VISUALIZER=false |
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 |
---|---|---|
|
@@ -11,6 +11,6 @@ lib | |
/docs | ||
.vscode | ||
.local | ||
package.json | ||
components.d.ts | ||
!.env-config.ts | ||
package.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
module.exports = { | ||
printWidth: 120, // 超过最大值换行 | ||
tabWidth: 2, // 缩进字节数 | ||
useTabs: false, // 缩进使用tab,不使用空格 | ||
semi: true, // 句尾添加分号 | ||
singleQuote: true, // 使用单引号代替双引号 | ||
proseWrap: 'preserve', // 默认值。因为使用了一些折行敏感型的渲染器(如GitHub comment)而按照markdown文本样式进行折行 | ||
arrowParens: 'avoid', // (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号 | ||
bracketSpacing: true, // 在对象,数组括号与文字之间加空格 "{ foo: bar }" | ||
endOfLine: 'auto', // 结尾是 \n \r \n\r auto | ||
eslintIntegration: false, //不让prettier使用eslint的代码格式进行校验 | ||
htmlWhitespaceSensitivity: 'ignore', // 指定HTML文件的全局空白区域敏感度 有效选项:"css"- 遵守CSS display属性的默认值。"strict" - 空格被认为是敏感的。"ignore" - 空格被认为是不敏感的。html 中空格也会占位,影响布局,prettier 格式化的时候可能会将文本换行,造成布局错乱 | ||
ignorePath: '.prettierignore', // 不使用prettier格式化的文件填写在项目的.prettierignore文件中 | ||
jsxSingleQuote: false, // 在jsx中使用单引号代替双引号 | ||
requireConfig: false, // Require a 'prettierconfig' to format prettier | ||
stylelintIntegration: false, //不让prettier使用stylelint的代码格式进行校验 | ||
trailingComma: 'none', // 在对象或数组最后一个元素后面是否加逗号(在ES5中加尾逗号) | ||
tslintIntegration: false, // 不让prettier使用tslint的代码格式进行校验 | ||
module.exports = { // https://prettier.io/docs/en/options.html | ||
arrowParens: 'always', | ||
bracketSameLine: false, | ||
bracketSpacing: true, | ||
embeddedLanguageFormatting: 'auto', | ||
htmlWhitespaceSensitivity: 'css', | ||
insertPragma: false, | ||
jsxSingleQuote: false, | ||
printWidth: 120, | ||
proseWrap: 'preserve', | ||
quoteProps: 'as-needed', | ||
requirePragma: false, | ||
semi: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'es5', | ||
useTabs: false, | ||
vueIndentScriptAndStyle: false, | ||
overrides: [ | ||
{ | ||
files: '*.html', | ||
options: { | ||
parser: 'html' | ||
} | ||
} | ||
] | ||
parser: '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
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.