Skip to content

Commit f578c75

Browse files
committed
Fix linting in Vue3
- Updated the code by aligning the code. Signed-off-by: Nikhil Ashoka <[email protected]>
1 parent b25e8ac commit f578c75

File tree

105 files changed

+3967
-3563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+3967
-3563
lines changed

.eslintrc.cjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ module.exports = {
1717
trailingComma: 'all',
1818
},
1919
],
20-
'vue/component-name-in-template-casing': [
21-
'error',
22-
'PascalCase' | 'kebab-case',
23-
],
20+
// 'vue/component-name-in-template-casing': [
21+
// 'error',
22+
// 'PascalCase' | 'kebab-case',
23+
// ],
2424
},
2525
ignorePatterns: ['*.timestamp-*.mjs'],
2626
overrides: [

src/components/AppHeader/AppHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ getEvents();
157157
158158
const assetTag = computed(() => globalStore.assetTag);
159159
const isNavTagPresent = computed(
160-
() => assetTag.value || globalStore.modelType || globalStore.serialNumber
160+
() => assetTag.value || globalStore.modelType || globalStore.serialNumber,
161161
);
162162
const modelType = computed(() => globalStore.modelType);
163163
const serialNumber = computed(() => globalStore.serialNumber);

src/components/Composables/useTableSelectableComposable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ const useTableSelectableComposable = () => {
167167
};
168168
};
169169

170-
export default useTableSelectableComposable;
170+
export default useTableSelectableComposable;

src/components/Composables/useToastComposable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const useToastComposable = () => {
88
show?.({
99
props: () => ({
1010
//Success toast autoHideDelay - 10 seconds, Error/Info toast autohidedelay - 30 minutes
11-
interval: statusPassed==="success" ? 10000 : 1800000,
11+
interval: statusPassed === 'success' ? 10000 : 1800000,
1212
}),
1313
component: h(Toast, {
1414
title: title,

src/components/Global/FormFile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
:disabled="disabled"
99
:state="state"
1010
plain
11-
@update:model-value="$emit('input', file)"
1211
class="form-control-file"
12+
@update:model-value="$emit('input', file)"
1313
>
1414
</BFormFile>
1515
<span

src/components/Global/InfoTooltipPassword.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ import { defineProps } from 'vue';
3636
import IconTooltip from '@carbon/icons-vue/es/information/16';
3737
3838
defineProps({
39-
title: {
40-
type: String,
41-
default: '',
42-
},
43-
})
39+
title: {
40+
type: String,
41+
default: '',
42+
},
43+
});
4444
</script>
4545

4646
<style lang="scss" scoped>
@@ -51,7 +51,7 @@ defineProps({
5151
vertical-align: baseline;
5252
}
5353
}
54-
#tooltip{
54+
#tooltip {
5555
text-align: left !important;
5656
}
5757
</style>

src/components/Global/InputPasswordToggle.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
</div>
1515
</template>
1616

17-
1817
<script setup>
1918
import IconView from '@carbon/icons-vue/es/view/20';
2019
import IconViewOff from '@carbon/icons-vue/es/view--off/20';
@@ -25,13 +24,11 @@ const togglePasswordLabel = ref(i18n.global.t('global.ariaLabel.showPassword'));
2524
const emit = defineEmits(['updatePassView']);
2625
const toggleVisibility = () => {
2726
isVisible.value = !isVisible.value;
28-
emit('updatePassView',
29-
isVisible.value ? 'text' : 'password'
30-
)
27+
emit('updatePassView', isVisible.value ? 'text' : 'password');
3128
togglePasswordLabel.value = isVisible.value
3229
? i18n.global.t('global.ariaLabel.hidePassword')
33-
: i18n.global.t('global.ariaLabel.showPassword')
34-
}
30+
: i18n.global.t('global.ariaLabel.showPassword');
31+
};
3532
</script>
3633

3734
<style lang="scss" scoped>

src/components/Global/TableRowAction.vue

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -59,51 +59,51 @@ import { defineProps, computed } from 'vue';
5959
import { omit } from 'lodash';
6060
6161
const props = defineProps({
62-
value: {
63-
type: String,
64-
required: true,
65-
},
66-
enabled: {
67-
type: Boolean,
68-
default: true,
69-
},
70-
title: {
71-
type: String,
72-
default: null,
73-
},
74-
rowData: {
75-
type: Object,
76-
default: () => {},
77-
},
78-
exportName: {
79-
type: String,
80-
default: 'export',
81-
},
82-
downloadLocation: {
83-
type: String,
84-
default: '',
85-
},
86-
btnIconOnly: {
87-
type: Boolean,
88-
default: true,
89-
},
90-
downloadInNewTab: {
91-
type: Boolean,
92-
default: false,
93-
},
94-
showButton: {
95-
type: Boolean,
96-
default: true,
97-
},
98-
});
62+
value: {
63+
type: String,
64+
required: true,
65+
},
66+
enabled: {
67+
type: Boolean,
68+
default: true,
69+
},
70+
title: {
71+
type: String,
72+
default: null,
73+
},
74+
rowData: {
75+
type: Object,
76+
default: () => {},
77+
},
78+
exportName: {
79+
type: String,
80+
default: 'export',
81+
},
82+
downloadLocation: {
83+
type: String,
84+
default: '',
85+
},
86+
btnIconOnly: {
87+
type: Boolean,
88+
default: true,
89+
},
90+
downloadInNewTab: {
91+
type: Boolean,
92+
default: false,
93+
},
94+
showButton: {
95+
type: Boolean,
96+
default: true,
97+
},
98+
});
9999
100100
const dataForExport = computed(() => {
101-
return JSON.stringify(omit(props.rowData, 'actions'));
102-
});
101+
return JSON.stringify(omit(props.rowData, 'actions'));
102+
});
103103
const download = computed(() => {
104-
return `${props.exportName}.json`;
105-
});
104+
return `${props.exportName}.json`;
105+
});
106106
const href = computed(() => {
107-
return `data:text/json;charset=utf-8,${dataForExport.value}`;
107+
return `data:text/json;charset=utf-8,${dataForExport.value}`;
108108
});
109-
</script>
109+
</script>

src/layouts/AppLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ onMounted(() => {
3535
});
3636
3737
watch(
38-
() => route
38+
() => route,
3939
// () => {
4040
// nextTick(() => {
4141
// setFocus(focusTarget.value);

src/layouts/LoginLayout.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
<div class="login-main">
66
<div>
77
<div class="login-brand mb-5">
8-
<img width="90px" src="@/assets/images/login-company-logo.svg" :alt="altLogo" />
8+
<img
9+
width="90px"
10+
src="@/assets/images/login-company-logo.svg"
11+
:alt="altLogo"
12+
/>
913
</div>
1014
<h1 v-if="customizableGuiName" class="h3 mb-5">
1115
{{ customizableGuiName }}
@@ -27,7 +31,7 @@ import { ref } from 'vue';
2731
// Need to uncomment the below when env based configuration is implemented
2832
// const altLogo = ref(process.env.VUE_APP_COMPANY_NAME || 'OpenBMC');
2933
// const customizableGuiName = ref(process.env.VUE_APP_GUI_NAME || '');
30-
const altLogo = ref('OpenBMC');
34+
const altLogo = ref('OpenBMC');
3135
const customizableGuiName = ref('Advanced System Management Interface (ASMI)');
3236
</script>
3337

0 commit comments

Comments
 (0)