Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0a38fd1

Browse files
Virtual-Browserpanhongxue
authored andcommitted
chore: prettier format
1 parent db4ab18 commit 0a38fd1

65 files changed

Lines changed: 40373 additions & 5517 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.prettierrc.js‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
printWidth: 100, //单行长度
3+
tabWidth: 2, //缩进长度
4+
useTabs: false, //使用空格代替tab缩进
5+
semi: false, //句末使用分号
6+
singleQuote: true, //使用单引号
7+
quoteProps: 'as-needed', //仅在必需时为对象的key添加引号
8+
trailingComma: 'none', //多行时尽可能打印尾随逗号
9+
bracketSpacing: true, //在对象前后添加空格
10+
arrowParens: 'avoid', //单参数箭头函数参数周围使用圆括号
11+
requirePragma: false, //无需顶部注释即可格式化
12+
insertPragma: false, //在已被preitter格式化的文件顶部加上标注
13+
proseWrap: 'preserve', //不知道怎么翻译
14+
htmlWhitespaceSensitivity: 'ignore', //对HTML全局空白不敏感
15+
vueIndentScriptAndStyle: false, //不对vue中的script及style标签缩进
16+
endOfLine: 'auto', //结束行形式
17+
embeddedLanguageFormatting: 'auto'
18+
}

‎server/.eslintrc.js‎

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,15 @@ module.exports = {
1313
extends: ['plugin:vue/recommended', 'eslint:recommended', 'plugin:prettier/recommended'],
1414

1515
// add your custom rules here
16-
//it is base on https://github.com/vuejs/eslint-config-vue
16+
//it is base on https://github.com/vuejs/eslint-config-vue
1717
rules: {
18-
'vue/max-attributes-per-line': [
19-
2,
20-
{
21-
singleline: 10,
22-
multiline: {
23-
max: 1,
24-
allowFirstLine: false
25-
}
26-
}
27-
],
2818
'vue/singleline-html-element-content-newline': 'off',
2919
'vue/multiline-html-element-content-newline': 'off',
20+
'vue/multi-word-component-names': 'off',
3021
'vue/name-property-casing': ['error', 'PascalCase'],
3122
'vue/no-v-html': 'off',
3223
'vue/no-unused-components': 'warn',
24+
'vue/no-mutating-props': 'warn',
3325
'accessor-pairs': 2,
3426
'arrow-spacing': [
3527
2,
@@ -74,7 +66,6 @@ module.exports = {
7466
}
7567
],
7668
'handle-callback-err': [2, '^(err|error)$'],
77-
'jsx-quotes': [2, 'prefer-single'],
7869
'key-spacing': [
7970
2,
8071
{
@@ -249,13 +240,6 @@ module.exports = {
249240
yoda: [2, 'never'],
250241
'prefer-const': 2,
251242
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
252-
'object-curly-spacing': [
253-
2,
254-
'always',
255-
{
256-
objectsInObjects: false
257-
}
258-
],
259243
'array-bracket-spacing': [2, 'never']
260244
}
261245
}

‎server/.gitignore‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@ selenium-debug.log
1818
*.njsproj
1919
*.sln
2020
*.local
21-
22-
package-lock.json
23-
yarn.lock

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /