From 2174464e3f0714e82f91d5c815343032b71edf4a Mon Sep 17 00:00:00 2001 From: liuyx <1517482303@qq.com> Date: Mon, 5 Dec 2022 23:58:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0prettier=E3=80=81eslint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/.eslintrc.cjs | 18 ++++++++++++++++++ server/.prettierrc | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 server/.eslintrc.cjs create mode 100644 server/.prettierrc diff --git a/server/.eslintrc.cjs b/server/.eslintrc.cjs new file mode 100644 index 0000000..942318c --- /dev/null +++ b/server/.eslintrc.cjs @@ -0,0 +1,18 @@ +module.exports = { + env: { + browser: true, + es2021: true + }, + extends: ['plugin:vue/vue3-essential', 'standard'], + overrides: [], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module' + }, + plugins: ['vue'], + rules: { + 'vue/multi-word-component-names': 0, + 'space-before-function-paren': 0, + quotes: ['error', 'single'] // 单引号 + } +} diff --git a/server/.prettierrc b/server/.prettierrc new file mode 100644 index 0000000..e739cb8 --- /dev/null +++ b/server/.prettierrc @@ -0,0 +1,9 @@ +{ + "useTabs": false, + "tabWidth": 2, + "printWidth": 100, + "singleQuote": true, + "trailingComma": "none", + "bracketSpacing": true, + "semi": false +}