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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 63 additions and 50 deletions

View file

@ -28,9 +28,7 @@ module.exports = {
}], }],
'vue/html-self-closing': 'off', 'vue/html-self-closing': 'off',
"vue/no-v-html": 'off', "vue/no-v-html": 'off',
'vue/singleline-html-element-content-newline': 'warn', 'vue/singleline-html-element-content-newline': 'off',
'vue/require-default-prop': 'warn',
'vue/require-prop-types': 'warn',
'import/extensions': ['off'] 'import/extensions': ['off']
}, },

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -57,9 +57,9 @@ export default {
WootSubmitButton, WootSubmitButton,
}, },
props: { props: {
resetPasswordToken: String, resetPasswordToken: { type: String, default: '' },
redirectUrl: String, redirectUrl: { type: String, default: '' },
config: String, config: { type: String, default: '' },
}, },
data() { data() {
return { return {

View file

@ -10,8 +10,8 @@
<script> <script>
export default { export default {
props: { props: {
headerTitle: String, headerTitle: { type: String, default: '' },
headerContent: String, headerContent: { type: String, default: '' },
}, },
}; };
</script> </script>

View file

@ -25,9 +25,9 @@ export default {
SettingsHeader, SettingsHeader,
}, },
props: { props: {
headerTitle: String, headerTitle: { type: String, default: '' },
headerButtonText: String, headerButtonText: { type: String, default: '' },
icon: String, icon: { type: String, default: '' },
keepAlive: { keepAlive: {
type: Boolean, type: Boolean,
default: true, default: true,

View file

@ -61,10 +61,10 @@ export default {
Modal, Modal,
}, },
props: { props: {
id: Number, id: { type: Number, default: null },
edcontent: String, edcontent: { type: String, default: '' },
edshortCode: String, edshortCode: { type: String, default: '' },
onClose: Function, onClose: { type: Function, default: () => {} },
}, },
data() { data() {
return { return {

View file

@ -47,8 +47,8 @@ export default {
mixins: [globalConfigMixin], mixins: [globalConfigMixin],
props: { props: {
integrationId: { integrationId: {
type: String, type: [String, Number],
default: '', required: true,
}, },
integrationLogo: { integrationLogo: {
type: String, type: String,

View file

@ -68,14 +68,17 @@ import globalConfigMixin from 'shared/mixins/globalConfigMixin';
export default { export default {
mixins: [alertMixin, globalConfigMixin], mixins: [alertMixin, globalConfigMixin],
props: [ props: {
'integrationId', integrationId: {
'integrationLogo', type: [String, Number],
'integrationName', required: true,
'integrationDescription', },
'integrationEnabled', integrationLogo: { type: String, default: '' },
'integrationAction', integrationName: { type: String, default: '' },
], integrationDescription: { type: String, default: '' },
integrationEnabled: { type: Boolean, default: false },
integrationAction: { type: String, default: '' },
},
data() { data() {
return { return {
showDeleteConfirmationPopup: false, showDeleteConfirmationPopup: false,

View file

@ -33,7 +33,14 @@ export default {
IntegrationHelpText, IntegrationHelpText,
}, },
mixins: [globalConfigMixin], mixins: [globalConfigMixin],
props: ['integrationId', 'code'],
props: {
integrationId: {
type: [String, Number],
required: true,
},
code: { type: String, default: '' },
},
data() { data() {
return { return {
integrationLoaded: false, integrationLoaded: false,

View file

@ -56,7 +56,7 @@ export default {
}; };
}, },
watch: { watch: {
value: function(newValue) { value(newValue) {
this.greetingsMessage = newValue; this.greetingsMessage = newValue;
}, },
}, },

View file

@ -19,7 +19,11 @@
<script> <script>
export default { export default {
props: ['url', 'thumb', 'readableTime'], props: {
url: { type: String, default: '' },
thumb: { type: String, default: '' },
readableTime: { type: String, default: '' },
},
methods: { methods: {
onImgError() { onImgError() {
this.$emit('error'); this.$emit('error');

View file

@ -11,9 +11,11 @@ export default {
props: { props: {
src: { src: {
type: String, type: String,
default: '',
}, },
size: { size: {
type: String, type: String,
default: '',
}, },
}, },
computed: { computed: {