From 6e42ba8132d6a30608b036e1e11bb7f149a21ed8 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Thu, 25 Jan 2024 21:14:48 +0100 Subject: [PATCH] chore(webapp): migrate css deep operator preparation for vue3 add eslint rule --- www/webapp/.eslintrc.cjs | 3 +++ www/webapp/package.json | 1 + .../src/components/Field/RecordList.vue | 2 +- www/webapp/src/views/CrudList.vue | 14 ++++++------- www/webapp/src/views/CrudListRecord.vue | 20 +++++++++---------- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/www/webapp/.eslintrc.cjs b/www/webapp/.eslintrc.cjs index a3e7cb51f..740b95c73 100644 --- a/www/webapp/.eslintrc.cjs +++ b/www/webapp/.eslintrc.cjs @@ -17,6 +17,7 @@ module.exports = { // 'plugin:vue/recommended', 'plugin:vuetify/base', 'plugin:import/recommended', + 'plugin:vue-scoped-css/recommended', // vue2 'eslint:recommended', ], settings: { @@ -37,6 +38,8 @@ module.exports = { 'vue/no-deprecated-filter': 'warn', // Preparation for vue3 'vue/no-deprecated-v-on-number-modifiers': 'warn', // Preparation for vue3 'vue/no-deprecated-html-element-is': 'warn', // Preparation for vue3 + 'vue-scoped-css/enforce-style-type': 'off', + 'vue-scoped-css/no-deprecated-deep-combinator': 'warn', // Preparation for vue3 'vue/match-component-file-name': ['error', {'extensions': ['vue'], 'shouldMatchCase': true}], }, ignorePatterns: ['**/src/modules/**/*'], diff --git a/www/webapp/package.json b/www/webapp/package.json index 09f061923..bc9ccfe0e 100644 --- a/www/webapp/package.json +++ b/www/webapp/package.json @@ -31,6 +31,7 @@ "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.27.5", "eslint-plugin-vue": "^9.15.1", + "eslint-plugin-vue-scoped-css": "^2.6.1", "eslint-plugin-vuetify": "^1.1.0", "sass": "~1.32.13", "unplugin-vue-components": "^0.26.0", diff --git a/www/webapp/src/components/Field/RecordList.vue b/www/webapp/src/components/Field/RecordList.vue index 44dff3d68..5a15de4f5 100644 --- a/www/webapp/src/components/Field/RecordList.vue +++ b/www/webapp/src/components/Field/RecordList.vue @@ -161,7 +161,7 @@ export default { }; diff --git a/www/webapp/src/views/CrudList.vue b/www/webapp/src/views/CrudList.vue index 9c5891cf7..ba8bd2f7d 100644 --- a/www/webapp/src/views/CrudList.vue +++ b/www/webapp/src/views/CrudList.vue @@ -702,29 +702,29 @@ export default { diff --git a/www/webapp/src/views/CrudListRecord.vue b/www/webapp/src/views/CrudListRecord.vue index b05ea470d..a480a0fd5 100644 --- a/www/webapp/src/views/CrudListRecord.vue +++ b/www/webapp/src/views/CrudListRecord.vue @@ -124,38 +124,38 @@ export default {