diff --git a/.eslintrc.js b/.eslintrc.js index 3857599c6..a32289c8d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,31 +1,31 @@ module.exports = { - root: true, - env: { - node: true, - }, - extends: [ - "plugin:vue/vue3-essential", - "eslint:recommended", - "@vue/typescript/recommended", - "@vue/prettier", - "@vue/prettier/@typescript-eslint", - ], - parserOptions: { - ecmaVersion: 2020, - }, - rules: { - "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", - "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", - }, - overrides: [ - { - files: [ - "**/__tests__/*.{j,t}s?(x)", - "**/tests/unit/**/*.spec.{j,t}s?(x)", - ], - env: { - jest: true, - }, + root: true, + env: { + node: true, }, - ], + extends: [ + "plugin:vue/vue3-essential", + "eslint:recommended", + "@vue/typescript/recommended", + "@vue/prettier", + "@vue/prettier/@typescript-eslint", + ], + parserOptions: { + ecmaVersion: 2020, + }, + rules: { + "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", + "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off" + }, + overrides: [ + { + files: [ + "**/__tests__/*.{j,t}s?(x)", + "**/tests/unit/**/*.spec.{j,t}s?(x)", + ], + env: { + jest: true, + }, + }, + ], }; diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 000000000..1dabc998a --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,6 @@ +module.exports = { + singleQuote: true, + printWidth: 120, + tabWidth: 4, + endOfLine: "auto", + }; \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 7a4d42166..95f0f8cbc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,16 +1,9 @@ { - "eslint.validate": [ - "javascript", - "typescript", - "vue", - "html", - "scss", - "json", - ], "editor.codeActionsOnSave": { "source.fixAll.eslint": true, }, "editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": true, "files.eol": "\n", + "editor.tabSize": 4, } \ No newline at end of file diff --git a/babel.config.js b/babel.config.js index 162a3ea97..218963bd8 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: ["@vue/cli-plugin-babel/preset"], + presets: ['@vue/cli-plugin-babel/preset'], }; diff --git a/cypress.json b/cypress.json index 470c72019..94d03b161 100644 --- a/cypress.json +++ b/cypress.json @@ -1,3 +1,3 @@ { - "pluginsFile": "tests/e2e/plugins/index.js" -} + "pluginsFile": "tests/e2e/plugins/index.js" +} \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index 075155a2a..c2283ebfd 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,6 @@ module.exports = { - preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel", - transform: { - "^.+\\.vue$": "vue-jest", - }, + preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel', + transform: { + '^.+\\.vue$': 'vue-jest', + }, }; diff --git a/public/index.html b/public/index.html index 3e5a13962..ac644cb37 100644 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,23 @@ -
+ + -