Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-22 20:09:19 +08:00
v3-admin-vite/prettier.config.js

26 lines
691 B
JavaScript
Raw Normal View History

2023-12-02 14:40:55 +08:00
/**
* 配置项文档https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
export default {
2022-04-21 14:14:40 +08:00
/** 每一行的宽度 */
printWidth: 120,
/** Tab 键的空格数 */
2022-04-21 14:14:40 +08:00
tabWidth: 2,
/** 在对象中的括号之间是否用空格来间隔 */
2022-04-21 14:14:40 +08:00
bracketSpacing: true,
/** 箭头函数的参数无论有几个,都要括号包裹 */
arrowParens: "always",
2022-04-21 14:14:40 +08:00
/** 换行符的使用 */
endOfLine: "auto",
/** 是否采用单引号 */
singleQuote: false,
/** 对象或者数组的最后一个元素后面不要加逗号 */
trailingComma: "none",
/** 是否加分号 */
2022-04-21 14:14:40 +08:00
semi: false,
/** 是否使用 Tab 格式化 */
useTabs: false
2022-04-21 14:14:40 +08:00
}