From 33c98accf5cca02f15ea75cbdaf1e4ca60abf2c4 Mon Sep 17 00:00:00 2001 From: Tony Panczenko Date: Sat, 22 Oct 2022 14:55:10 +0100 Subject: [PATCH] setup git commit -m setup git commit -m setup --- .eslintrc.cjs | 69 +++++++++++++++++++++++++++++++++++++++++ .gitignore | 29 +++++++++++++++++ .vscode/extensions.json | 3 ++ 3 files changed, 101 insertions(+) create mode 100644 .eslintrc.cjs create mode 100644 .gitignore create mode 100644 .vscode/extensions.json diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..2750fa3 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,69 @@ +/* eslint-env node */ +require('@rushstack/eslint-patch/modern-module-resolution') + +module.exports = { + 'root': true, + 'env': { + 'browser': true, + 'es2022': true + }, + 'extends': [ + 'plugin:vue/vue3-essential', + 'eslint:recommended', + '@vue/eslint-config-typescript' + ], + 'parserOptions': { + 'sourceType': 'module' + }, + 'rules': { + 'indent': [ + 'error', + 2 + ], + 'linebreak-style': [ + 'off', + ], + 'quotes': [ + 'error', + 'single' + ], + 'semi': [ + 'error', + 'always' + ], + 'max-len': ['error', { + code: 120, + ignoreTrailingComments: true + } + ], + 'vue/max-attributes-per-line': ['error', { + 'singleline': { + 'max': 3 + }, + 'multiline': { + 'max': 1 + } + }], + 'vue/html-indent': ['error', 'tab', { + 'attribute': 1, + 'baseIndent': 1, + 'closeBracket': { + startTag: 0, + endTag: 0, + selfClosingTag: 0, + }, + 'alignAttributesVertically': true, + 'ignores': [] + }] + }, + 'ignorePatterns': ['dist/*'], + settings: { + 'import/resolver': { + alias: { + map: [ + ['@', './src'], + ], + } + } + } +}; diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e4fcb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist/* +dist-ssr +coverage +*.local + +cypress/videos/ +cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..c0a6e5a --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"] +}