Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the
lint command. There were a couple of small manual changes to meet the
property order patterns established as part of the vue:recommended
guidelines.
There are rules that were set from errors to warnings and new stories
are being opened to address those issues.
Testing:
- Successfully ran npm run serve
- Successfully ran npm run lint
- Verified functionality works as expected, e.g. success and failure use cases
- Resolved any JavaScript errors thrown to the console
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
diff --git a/src/components/Mixins/BVPaginationMixin.js b/src/components/Mixins/BVPaginationMixin.js
index 84c46aa..8b52f8b 100644
--- a/src/components/Mixins/BVPaginationMixin.js
+++ b/src/components/Mixins/BVPaginationMixin.js
@@ -6,32 +6,32 @@
itemsPerPageOptions: [
{
value: 10,
- text: '10'
+ text: '10',
},
{
value: 20,
- text: '20'
+ text: '20',
},
{
value: 30,
- text: '30'
+ text: '30',
},
{
value: 40,
- text: '40'
+ text: '40',
},
{
value: 0,
- text: this.$t('global.table.viewAll')
- }
- ]
+ text: this.$t('global.table.viewAll'),
+ },
+ ],
};
},
methods: {
getTotalRowCount(count) {
return this.perPage === 0 ? 0 : count;
- }
- }
+ },
+ },
};
export default BVPaginationMixin;
diff --git a/src/components/Mixins/BVTableSelectableMixin.js b/src/components/Mixins/BVTableSelectableMixin.js
index fba2f2b..cee7d0c 100644
--- a/src/components/Mixins/BVTableSelectableMixin.js
+++ b/src/components/Mixins/BVTableSelectableMixin.js
@@ -3,7 +3,7 @@
return {
tableHeaderCheckboxModel: false,
tableHeaderCheckboxIndeterminate: false,
- selectedRows: []
+ selectedRows: [],
};
},
methods: {
@@ -37,8 +37,8 @@
if (this.tableHeaderCheckboxModel) tableRef.clearSelected();
else tableRef.selectAllRows();
}
- }
- }
+ },
+ },
};
export default BVTableSelectableMixin;
diff --git a/src/components/Mixins/BVToastMixin.js b/src/components/Mixins/BVToastMixin.js
index 95ac531..5e8ec00 100644
--- a/src/components/Mixins/BVToastMixin.js
+++ b/src/components/Mixins/BVToastMixin.js
@@ -2,7 +2,7 @@
import StatusIcon from '../Global/StatusIcon';
const BVToastMixin = {
components: {
- StatusIcon
+ StatusIcon,
},
methods: {
toastTitle(title, status) {
@@ -12,7 +12,7 @@
{ class: 'toast-icon' },
[
this.$createElement('StatusIcon', { props: { status: status } }),
- title
+ title,
]
);
return titleWithIcon;
@@ -23,7 +23,7 @@
variant: 'success',
autoHideDelay: 10000, //auto hide in milliseconds
isStatus: true,
- solid: true
+ solid: true,
});
},
errorToast(message, title = i18n.t('global.status.error')) {
@@ -32,7 +32,7 @@
variant: 'danger',
noAutoHide: true,
isStatus: true,
- solid: true
+ solid: true,
});
},
warningToast(message, title = i18n.t('global.status.warning')) {
@@ -41,7 +41,7 @@
variant: 'warning',
noAutoHide: true,
isStatus: true,
- solid: true
+ solid: true,
});
},
infoToast(message, title = i18n.t('global.status.informational')) {
@@ -50,10 +50,10 @@
variant: 'info',
noAutoHide: true,
isStatus: true,
- solid: true
+ solid: true,
});
- }
- }
+ },
+ },
};
export default BVToastMixin;
diff --git a/src/components/Mixins/LoadingBarMixin.js b/src/components/Mixins/LoadingBarMixin.js
index fffb1ca..9b6b195 100644
--- a/src/components/Mixins/LoadingBarMixin.js
+++ b/src/components/Mixins/LoadingBarMixin.js
@@ -1,7 +1,7 @@
const LoadingBarMixin = {
data() {
return {
- loading: true
+ loading: true,
};
},
methods: {
@@ -15,8 +15,8 @@
},
hideLoader() {
this.$root.$emit('loader::hide');
- }
- }
+ },
+ },
};
export default LoadingBarMixin;
diff --git a/src/components/Mixins/LocalTimezoneLabelMixin.js b/src/components/Mixins/LocalTimezoneLabelMixin.js
index 0f96a45..6b4141c 100644
--- a/src/components/Mixins/LocalTimezoneLabelMixin.js
+++ b/src/components/Mixins/LocalTimezoneLabelMixin.js
@@ -7,8 +7,8 @@
const shortTz = this.$options.filters.shortTimeZone(new Date());
const pattern = `'${shortTz}' O`;
return format(new Date(), pattern, { timezone }).replace('GMT', 'UTC');
- }
- }
+ },
+ },
};
export default LocalTimezoneLabelMixin;
diff --git a/src/components/Mixins/SearchFilterMixin.js b/src/components/Mixins/SearchFilterMixin.js
index 856975d..41f93b1 100644
--- a/src/components/Mixins/SearchFilterMixin.js
+++ b/src/components/Mixins/SearchFilterMixin.js
@@ -1,7 +1,7 @@
const SearchFilterMixin = {
data() {
return {
- searchFilter: null
+ searchFilter: null,
};
},
methods: {
@@ -10,8 +10,8 @@
},
onClearSearchInput() {
this.searchFilter = null;
- }
- }
+ },
+ },
};
export default SearchFilterMixin;
diff --git a/src/components/Mixins/TableDataFormatterMixin.js b/src/components/Mixins/TableDataFormatterMixin.js
index 3e15926..026f874 100644
--- a/src/components/Mixins/TableDataFormatterMixin.js
+++ b/src/components/Mixins/TableDataFormatterMixin.js
@@ -23,8 +23,8 @@
},
tableFormatterArray(value) {
return value.join(', ');
- }
- }
+ },
+ },
};
export default TableDataFormatterMixin;
diff --git a/src/components/Mixins/TableFilterMixin.js b/src/components/Mixins/TableFilterMixin.js
index 1a5425f..7a2cc54 100644
--- a/src/components/Mixins/TableFilterMixin.js
+++ b/src/components/Mixins/TableFilterMixin.js
@@ -11,7 +11,7 @@
// Check if row property value is included in list of
// active filters
- return tableData.filter(row => {
+ return tableData.filter((row) => {
let returnRow = false;
for (const { key, values } of filters) {
const rowProperty = row[key];
@@ -45,14 +45,14 @@
: Number.POSITIVE_INFINITY;
}
- return tableData.filter(row => {
+ return tableData.filter((row) => {
const date = row[propertyKey];
if (!(date instanceof Date)) return;
const dateInMs = date.getTime();
if (dateInMs >= startDateInMs && dateInMs <= endDateInMs) return row;
});
- }
- }
+ },
+ },
};
export default TableFilterMixin;
diff --git a/src/components/Mixins/TableRowExpandMixin.js b/src/components/Mixins/TableRowExpandMixin.js
index fad63c6..d5246cd 100644
--- a/src/components/Mixins/TableRowExpandMixin.js
+++ b/src/components/Mixins/TableRowExpandMixin.js
@@ -1,7 +1,7 @@
const TableRowExpandMixin = {
data() {
return {
- expandRowLabel: this.$t('global.table.expandTableRow')
+ expandRowLabel: this.$t('global.table.expandTableRow'),
};
},
methods: {
@@ -10,8 +10,8 @@
row.detailsShowing
? (this.expandRowLabel = this.$t('global.table.expandTableRow'))
: (this.expandRowLabel = this.$t('global.table.collapseTableRow'));
- }
- }
+ },
+ },
};
export default TableRowExpandMixin;
diff --git a/src/components/Mixins/TableSortMixin.js b/src/components/Mixins/TableSortMixin.js
index 7e98850..c099735 100644
--- a/src/components/Mixins/TableSortMixin.js
+++ b/src/components/Mixins/TableSortMixin.js
@@ -4,8 +4,8 @@
methods: {
sortStatus(a, b, key) {
return STATUS.indexOf(a[key]) - STATUS.indexOf(b[key]);
- }
- }
+ },
+ },
};
export default TableSortMixin;
diff --git a/src/components/Mixins/VuelidateMixin.js b/src/components/Mixins/VuelidateMixin.js
index 8c61779..fec8525 100644
--- a/src/components/Mixins/VuelidateMixin.js
+++ b/src/components/Mixins/VuelidateMixin.js
@@ -3,8 +3,8 @@
getValidationState(model) {
const { $dirty, $error } = model;
return $dirty ? !$error : null;
- }
- }
+ },
+ },
};
export default VuelidateMixin;