From 5ca14e7f36fd1007f51d63426ca2ef86d6c44b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Fri, 24 Dec 2021 15:20:40 +0800 Subject: [PATCH] chore: format code, add editorconfig --- .editorconfig | 12 ++++++++++++ collection/uni-id-users/collection.json | 18 +++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..64d3d6a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true \ No newline at end of file diff --git a/collection/uni-id-users/collection.json b/collection/uni-id-users/collection.json index c72cbb1..a94acc3 100644 --- a/collection/uni-id-users/collection.json +++ b/collection/uni-id-users/collection.json @@ -125,11 +125,11 @@ "description": "头像地址", "trim": "both" }, - "avatar_file": { - "bsonType": "file", - "title": "头像文件", - "description": "用file类型方便使用uni-file-picker组件" - }, + "avatar_file": { + "bsonType": "file", + "title": "头像文件", + "description": "用file类型方便使用uni-file-picker组件" + }, "department_id": { "bsonType": "array", "description": "部门ID", @@ -253,9 +253,9 @@ } } }, - "score":{ - "bsonType": "int", - "description": "用户积分,积分变更记录可参考:uni-id-scores表定义" + "score": { + "bsonType": "int", + "description": "用户积分,积分变更记录可参考:uni-id-scores表定义" }, "register_date": { "bsonType": "timestamp", @@ -421,4 +421,4 @@ } } ] -} \ No newline at end of file +}