mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
feat: update eslint & prettier rules
This commit is contained in:
@@ -3,7 +3,20 @@
|
||||
* @type {import("prettier").Config}
|
||||
*/
|
||||
const config = {
|
||||
trailingComma: "none",
|
||||
// 单行长度
|
||||
printWidth: 80,
|
||||
// 缩进
|
||||
tabWidth: 2,
|
||||
// 使用空格代替tab缩进
|
||||
useTabs: false,
|
||||
// 句末使用分号
|
||||
semi: true,
|
||||
// 使用单引号
|
||||
singleQuote: true,
|
||||
// 大括号前后空格
|
||||
bracketSpacing: true,
|
||||
attributeVerticalAlignment: 'auto',
|
||||
trailingComma: 'all',
|
||||
};
|
||||
|
||||
export default config;
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user