From 6e50a510eba43bc3303917debe8503f93418fde7 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 30 Jan 2021 16:53:56 +0100 Subject: [PATCH] [Vue3] More fixes in setup and MainUserSettings --- .eslintrc.js | 4 +-- package.json | 3 +-- quasar.conf.js | 6 ++--- .../components/settings/MainUserSettings.vue | 27 ++++++++++++------- tsconfig.json | 3 +-- yarn.lock | 24 +++++------------ 6 files changed, 30 insertions(+), 37 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 7454ebf..f6738c5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -38,8 +38,8 @@ module.exports = { // Uncomment any of the lines below to choose desired strictness, // but leave only one uncommented! // See https://eslint.vuejs.org/rules/#available-rules - 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention) - // 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) + // 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention) + 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability) // 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead) // https://github.com/prettier/eslint-config-prettier#installation diff --git a/package.json b/package.json index b403274..895df4c 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,7 @@ "@types/webpack-env": "^1.16.0", "@typescript-eslint/eslint-plugin": "^4.8.2", "@typescript-eslint/parser": "^4.8.2", - "babel-eslint": "^10.1.0", - "eslint": "^7.15.0", + "eslint": "^7.18.0", "eslint-config-prettier": "^6.15.0", "eslint-plugin-vue": "^7.5.0", "eslint-webpack-plugin": "^2.4.3", diff --git a/quasar.conf.js b/quasar.conf.js index 5c1f04c..a398ad9 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -7,10 +7,10 @@ // https://quasar.dev/quasar-cli/quasar-conf-js /* eslint-env node */ -const ESLintPlugin = require('eslint-webpack-plugin') -const { configure } = require('quasar/wrappers'); +import ESLintPlugin from 'eslint-webpack-plugin'; +import { configure } from 'quasar/wrappers'; -module.exports = configure(function (/* ctx */) { +export default configure(function (/* ctx */) { return { // https://quasar.dev/quasar-cli/supporting-ts // https://quasar.dev/quasar-cli/supporting-ts diff --git a/src/plugins/user/components/settings/MainUserSettings.vue b/src/plugins/user/components/settings/MainUserSettings.vue index 2063ada..e1b096e 100644 --- a/src/plugins/user/components/settings/MainUserSettings.vue +++ b/src/plugins/user/components/settings/MainUserSettings.vue @@ -65,7 +65,7 @@ hint="Bilddateien, max. 200 KiB" @rejected="onAvatarRejected" > -