chore: Fix Eslint warnings (#3654)

* Fix all the eslint warnings

* Revert the schema
This commit is contained in:
Muhsin Keloth
2021-12-27 13:49:31 +05:30
committed by GitHub
parent 28da30f7e4
commit 9606abe251
17 changed files with 63 additions and 50 deletions

View File

@@ -11,7 +11,7 @@
<script>
export default {
props: {
message: String,
message: { type: String, default: '' },
showButton: Boolean,
duration: {
type: [String, Number],

View File

@@ -18,12 +18,11 @@
export default {
props: {
disabled: Boolean,
isFullwidth: Boolean,
type: String,
size: String,
type: { type: String, default: '' },
size: { type: String, default: '' },
checked: Boolean,
name: String,
id: String,
name: { type: String, default: '' },
id: { type: String, default: '' },
},
data() {
return {

View File

@@ -12,9 +12,9 @@
<script>
export default {
props: {
title: String,
message: String,
buttonText: String,
title: { type: String, default: '' },
message: { type: String, default: '' },
buttonText: { type: String, default: '' },
},
};
</script>

View File

@@ -1,12 +1,12 @@
<template>
<div class="row loading-state">
<h6 class="message">{{ message }}<span class="spinner"></span></h6>
<h6 class="message">{{ message }}<span class="spinner" /></h6>
</div>
</template>
<script>
export default {
props: {
message: String,
message: { type: String, default: '' },
},
};
</script>

View File

@@ -18,12 +18,12 @@
<script>
export default {
props: {
heading: String,
point: [Number, String],
index: Number,
desc: String,
heading: { type: String, default: '' },
point: { type: [Number, String], default: '' },
index: { type: Number, default: null },
desc: { type: String, default: '' },
selected: Boolean,
onClick: Function,
onClick: { type: Function, default: () => {} },
},
};
</script>

View File

@@ -21,12 +21,12 @@ export default {
},
props: {
show: Boolean,
onClose: Function,
onConfirm: Function,
title: String,
message: String,
confirmText: String,
rejectText: String,
onClose: { type: Function, default: () => {} },
onConfirm: { type: Function, default: () => {} },
title: { type: String, default: '' },
message: { type: String, default: '' },
confirmText: { type: String, default: '' },
rejectText: { type: String, default: '' },
},
};
</script>