From 5151e33ac28765fb4420938db7016c7a39637e71 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Thu, 1 Aug 2024 17:22:36 +0530 Subject: [PATCH] fix: remove ESLint rule vue/prefer-prop-type-boolean-first --- .eslintrc.js | 1 - .../dashboard/components/CustomAttribute.vue | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index fc3bf8abd..f3d050ab3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -160,7 +160,6 @@ module.exports = { ], 'vue/no-v-text': 'error', 'vue/padding-line-between-blocks': ['error', 'always'], - 'vue/prefer-prop-type-boolean-first': 'error', 'vue/prefer-separate-static-class': 'error', 'vue/require-explicit-slots': 'error', 'vue/require-macro-variable-name': [ diff --git a/app/javascript/dashboard/components/CustomAttribute.vue b/app/javascript/dashboard/components/CustomAttribute.vue index 012766550..e42660ed7 100644 --- a/app/javascript/dashboard/components/CustomAttribute.vue +++ b/app/javascript/dashboard/components/CustomAttribute.vue @@ -20,7 +20,7 @@ export default { label: { type: String, required: true }, description: { type: String, default: '' }, values: { type: Array, default: () => [] }, - value: { type: [Boolean, String, Number], default: '' }, + value: { type: [String, Number, Boolean], default: '' }, showActions: { type: Boolean, default: false }, attributeType: { type: String, default: 'text' }, attributeRegex: { @@ -194,9 +194,9 @@ export default {