diff --git a/.github/workflows/go.yaml b/.github/workflows/partial-backend.yaml similarity index 87% rename from .github/workflows/go.yaml rename to .github/workflows/partial-backend.yaml index 98b140ee..f01a0df0 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/partial-backend.yaml @@ -32,6 +32,3 @@ jobs: - name: Test run: task api:coverage - - - name: Upload coverage to Codecov - run: cd backend && bash <(curl -s https://codecov.io/bash) diff --git a/.github/workflows/frontend.yaml b/.github/workflows/partial-frontend.yaml similarity index 88% rename from .github/workflows/frontend.yaml rename to .github/workflows/partial-frontend.yaml index 9cab6056..fcbfcbd0 100644 --- a/.github/workflows/frontend.yaml +++ b/.github/workflows/partial-frontend.yaml @@ -32,5 +32,9 @@ jobs: run: pnpm install working-directory: frontend + - name: Run linter 👀 + run: pnpm lint + working-directory: "frontend" + - name: Run Integration Tests run: task test:ci diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b6d3b76f..829b02fd 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,11 +11,11 @@ env: jobs: backend-tests: name: "Backend Server Tests" - uses: hay-kot/homebox/.github/workflows/go.yaml@main + uses: hay-kot/homebox/.github/workflows/partial-backend.yaml@main frontend-tests: name: "Frontend and End-to-End Tests" - uses: hay-kot/homebox/.github/workflows/frontend.yaml@main + uses: hay-kot/homebox/.github/workflows/partial-frontend.yaml@main deploy: name: "Deploy Nightly to Fly.io" diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 7c93e8c2..1ccdec6d 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -8,8 +8,8 @@ on: jobs: backend-tests: name: "Backend Server Tests" - uses: hay-kot/homebox/.github/workflows/go.yaml@main + uses: hay-kot/homebox/.github/workflows/partial-backend.yaml@main frontend-tests: name: "Frontend and End-to-End Tests" - uses: hay-kot/homebox/.github/workflows/frontend.yaml@main + uses: hay-kot/homebox/.github/workflows/partial-frontend.yaml@main diff --git a/README.md b/README.md index 08a776ca..bd532291 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@

+ ## MVP Todo - [x] Locations diff --git a/frontend/.editorconfig b/frontend/.editorconfig deleted file mode 100644 index 9554c73f..00000000 --- a/frontend/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -root = true - -[*] -end_of_line = lf -insert_final_newline = true - -# Matches multiple files with brace expansion notation -[*.{js,jsx,html,sass,vue,ts,tsx,json}] -charset = utf-8 -indent_style = tab -indent_size = 4 -trim_trailing_whitespace = true diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js new file mode 100644 index 00000000..fa57669f --- /dev/null +++ b/frontend/.eslintrc.js @@ -0,0 +1,51 @@ +module.exports = { + env: { + browser: true, + es2021: true, + node: true, + }, + extends: [ + "eslint:recommended", + "plugin:vue/essential", + "plugin:@typescript-eslint/recommended", + "@nuxtjs/eslint-config-typescript", + "plugin:vue/vue3-recommended", + "plugin:prettier/recommended", + ], + parserOptions: { + ecmaVersion: "latest", + parser: "@typescript-eslint/parser", + sourceType: "module", + }, + plugins: ["vue", "@typescript-eslint"], + rules: { + "no-console": 0, + "no-unused-vars": "off", + "vue/multi-word-component-names": "off", + "vue/no-setup-props-destructure": 0, + "vue/no-multiple-template-root": 0, + "vue/no-v-model-argument": 0, + "@typescript-eslint/ban-ts-comment": 0, + "@typescript-eslint/no-unused-vars": [ + "error", + { + ignoreRestSiblings: true, + destructuredArrayIgnorePattern: "_", + caughtErrors: "none", + }, + ], + "prettier/prettier": [ + "warn", + { + arrowParens: "avoid", + semi: true, + tabWidth: 2, + useTabs: false, + vueIndentScriptAndStyle: true, + singleQuote: false, + trailingComma: "es5", + printWidth: 120, + }, + ], + }, +}; diff --git a/frontend/.prettierrc b/frontend/.prettierrc deleted file mode 100644 index b12bbd41..00000000 --- a/frontend/.prettierrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "arrowParens": "avoid", - "semi": true, - "tabWidth": 2, - "useTabs": false, - "vueIndentScriptAndStyle": true, - "singleQuote": true, - "trailingComma": "es5", - "printWidth": 120 -} \ No newline at end of file diff --git a/frontend/components/App/Header.vue b/frontend/components/App/Header.vue index 54d2e0fa..ca876df7 100644 --- a/frontend/components/App/Header.vue +++ b/frontend/components/App/Header.vue @@ -1,5 +1,5 @@ diff --git a/frontend/components/Base/ActionsDivider.vue b/frontend/components/Base/ActionsDivider.vue index e943c05e..c1199bdd 100644 --- a/frontend/components/Base/ActionsDivider.vue +++ b/frontend/components/Base/ActionsDivider.vue @@ -1,11 +1,11 @@