From 6830b1525fd3f277001e7d0d3cdea6bd0df85c81 Mon Sep 17 00:00:00 2001 From: * <*> Date: Mon, 18 Sep 2023 15:30:05 +0800 Subject: [PATCH] Match-id-567d4a8e9d4f25bba5f2b69c47ffbb2cea552455 --- packages/inula-cli/.prettierignore | 3 + packages/inula-cli/.prettierrc.js | 30 +++++ packages/inula-cli/src/utils/mockServer.ts | 145 +++++++++++++++++++++ 3 files changed, 178 insertions(+) create mode 100644 packages/inula-cli/.prettierignore create mode 100644 packages/inula-cli/.prettierrc.js create mode 100644 packages/inula-cli/src/utils/mockServer.ts diff --git a/packages/inula-cli/.prettierignore b/packages/inula-cli/.prettierignore new file mode 100644 index 00000000..fee8a6ae --- /dev/null +++ b/packages/inula-cli/.prettierignore @@ -0,0 +1,3 @@ +node_modules/ +webpack/ +public/ diff --git a/packages/inula-cli/.prettierrc.js b/packages/inula-cli/.prettierrc.js new file mode 100644 index 00000000..bfed5f4e --- /dev/null +++ b/packages/inula-cli/.prettierrc.js @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2020 Huawei Technologies Co.,Ltd. + * + * openGauss is licensed under Mulan PSL v2. + * You can use this software according to the terms and conditions of the Mulan PSL v2. + * You may obtain a copy of Mulan PSL v2 at: + * + * http://license.coscl.org.cn/MulanPSL2 + * + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PSL v2 for more details. + */ + +export default { + printWidth: 120, // 一行120字符数,如果超过会进行换行 + tabWidth: 2, // tab等2个空格 + useTabs: false, // 用空格缩进行 + semi: true, // 行尾使用分号 + singleQuote: true, // 字符串使用单引号 + quoteProps: 'as-needed', // 仅在需要时在对象属性添加引号 + jsxSingleQuote: false, // 在JSX中使用双引号 + trailingComma: 'es5', // 使用尾逗号(对象、数组等) + bracketSpacing: true, // 对象的括号间增加空格 + jsxBracketSameLine: false, // 将多行JSX元素的>放在最后一行的末尾 + arrowParens: 'avoid', // 在唯一的arrow函数参数周围省略括号 + vueIndentScriptAndStyle: false, // 不缩进Vue文件中的