Skip to content

Commit 72d21c9

Browse files
feat: 修改项目模板prettier格式化配置
1 parent 1d3b480 commit 72d21c9

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

template-react-ts/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@
8585
]
8686
},
8787
"prettier": {
88-
"trailingComma": "all",
8988
"arrowParens": "always",
90-
"printWidth": 120
89+
"printWidth": 120,
90+
"singleQuote": true,
91+
"jsxSingleQuote": true
9192
}
9293
}

template-vue-ts/components.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
// Read more: https://github.com/vuejs/core/pull/3399
66
export {}
77

8-
declare module "vue" {
8+
declare module 'vue' {
99
export interface GlobalComponents {
10-
ElButton: typeof import("element-plus/es")["ElButton"];
11-
ElConfigProvider: typeof import("element-plus/es")["ElConfigProvider"];
12-
ElForm: typeof import("element-plus/es")["ElForm"];
13-
ElFormItem: typeof import("element-plus/es")["ElFormItem"];
14-
ElInput: typeof import("element-plus/es")["ElInput"];
15-
HelloWorld: typeof import("./src/components/HelloWorld.vue")["default"];
16-
RouterLink: typeof import("vue-router")["RouterLink"];
17-
RouterView: typeof import("vue-router")["RouterView"];
10+
ElButton: typeof import('element-plus/es')['ElButton'];
11+
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'];
12+
ElForm: typeof import('element-plus/es')['ElForm'];
13+
ElFormItem: typeof import('element-plus/es')['ElFormItem'];
14+
ElInput: typeof import('element-plus/es')['ElInput'];
15+
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'];
16+
RouterLink: typeof import('vue-router')['RouterLink'];
17+
RouterView: typeof import('vue-router')['RouterView'];
1818
}
1919
}

template-vue-ts/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@
7676
]
7777
},
7878
"prettier": {
79-
"trailingComma": "all",
8079
"arrowParens": "always",
81-
"printWidth": 120
80+
"printWidth": 120,
81+
"singleQuote": true,
82+
"jsxSingleQuote": true
8283
}
8384
}

0 commit comments

Comments
 (0)