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 +}