diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..3be0965 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,36 @@ +module.exports = { + root: true, + env: { + node: true, + browser: true, + es2021: true + }, + extends: [ + 'plugin:vue/vue3-recommended', + 'eslint:recommended', + '@vue/typescript/recommended', + '@vue/prettier', + '@vue/prettier/@typescript-eslint' + ], + parserOptions: { + ecmaVersion: 2021 + }, + rules: { + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'vue/multi-word-component-names': 'off', + 'vue/no-v-html': 'off', + '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }], + 'prettier/prettier': [ + 'warn', + { + semi: false, + singleQuote: true, + printWidth: 300, + trailingComma: 'none', + arrowParens: 'avoid' + } + ] + } +} diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..bb17a1e --- /dev/null +++ b/.prettierrc @@ -0,0 +1,13 @@ +{ + "semi": false, + "singleQuote": true, + "printWidth": 300, + "trailingComma": "none", + "arrowParens": "avoid", + "endOfLine": "auto", + "tabWidth": 2, + "useTabs": false, + "bracketSpacing": true, + "jsxBracketSameLine": false, + "vueIndentScriptAndStyle": true +}