From 368cd12539bd45c8ffee6d9b828cad6f7eaac20c Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 12 Apr 2024 06:06:18 +0200 Subject: [PATCH] Fix frontend linting problems (#359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔨 fix 163 linting problems * 🔨 Switch to multiline comment * 🔨 Switch to multiline comment --- frontend/.eslintrc.cjs | 4 +- frontend/package.json | 2 +- frontend/src/components/SettingsCalendar.vue | 6 ++- frontend/src/composables/dayjs.js | 2 +- frontend/src/elements/AppointmentListItem.vue | 2 - frontend/src/elements/CalendarEvent.vue | 6 +-- .../src/elements/GoogleCalendarButton.vue | 8 ++-- frontend/src/elements/PrimaryButton.vue | 6 +-- frontend/src/elements/SecondaryButton.vue | 6 +-- frontend/src/elements/TextButton.vue | 8 ++-- frontend/src/elements/Tooltip.vue | 6 +-- frontend/src/main.js | 2 +- frontend/src/stores/alert-store.js | 2 +- frontend/src/stores/appointment-store.js | 2 +- frontend/src/stores/user-store.js | 5 +-- frontend/src/views/AppointmentsView.vue | 1 - .../src/views/BookingConfirmationView.vue | 2 +- frontend/src/views/BookingView.vue | 5 +-- frontend/src/views/CalendarView.vue | 2 +- frontend/src/views/ScheduleView.vue | 37 +------------------ .../test/stores/appointment-store.test.js | 8 ++-- frontend/test/stores/calendar-store.test.js | 8 ++-- frontend/test/stores/user-store.test.js | 4 +- frontend/test/utils/with-setup.js | 2 +- 24 files changed, 49 insertions(+), 87 deletions(-) diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index b4cae272f..00b3d206a 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -25,9 +25,11 @@ module.exports = { js: 'never', vue: 'off', }], - 'max-len': ['error', { code: 120 }], + 'max-len': 'off', // ['error', { code: 120 }], 'no-param-reassign': 'off', 'tailwindcss/no-custom-classname': 'off', + 'import/prefer-default-export': 'off', + 'radix': 'off', }, settings: { 'import/resolver': { diff --git a/frontend/package.json b/frontend/package.json index cc23f4b59..34753913f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@auth0/auth0-vue": "^2.0.2", + "@rushstack/eslint-patch": "^1.3.3", "@sentry/vite-plugin": "^2.10.2", "@sentry/vue": "^7.56.0", "@tabler/icons-vue": "^2.4.0", @@ -32,7 +33,6 @@ "devDependencies": { "@babel/core": "^7.12.16", "@babel/eslint-parser": "^7.12.16", - "@rushstack/eslint-patch": "^1.3.3", "autoprefixer": "^10.4.12", "eslint": "^8.55.0", "eslint-config-airbnb-base": "^15.0.0", diff --git a/frontend/src/components/SettingsCalendar.vue b/frontend/src/components/SettingsCalendar.vue index d7fe251f2..5141b6673 100644 --- a/frontend/src/components/SettingsCalendar.vue +++ b/frontend/src/components/SettingsCalendar.vue @@ -44,7 +44,7 @@ -