Lint fixes

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia committed 2024-11-12 11:50:20 +01:00
1 parent 19b11aac2c
commit 4626d56acd
214 files changed
+3162 -1298

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@ const OBSCURE_NAMESPACE_PREFIX = [
export default class HciNamespace extends namespace {
get _availableActions() {
const out = super._availableActions;
const remove = out.findIndex(a => a.action === 'promptRemove');
const remove = out.findIndex((a) => a.action === 'promptRemove');
const promptRemove = {
action: 'promptRemove',
@@ -76,7 +76,7 @@ export default class HciNamespace extends namespace {
const inStore = this.$rootGetters['currentProduct'].inStore;
const allResQuotas = this.$rootGetters[`${ inStore }/all`](HCI.RESOURCE_QUOTA);
return allResQuotas.find( RQ => RQ.metadata.namespace === this.id);
return allResQuotas.find( (RQ) => RQ.metadata.namespace === this.id);
}
get snapshotSizeQuota() {
@@ -111,7 +111,7 @@ export default class HciNamespace extends namespace {
}
const isSettingSystemNamespace = this.$rootGetters['systemNamespaces'].includes(this.metadata.name);
const isObscurePrefix = !!OBSCURE_NAMESPACE_PREFIX.some(prefix => this.metadata.name.startsWith(prefix));
const isObscurePrefix = !!OBSCURE_NAMESPACE_PREFIX.some((prefix) => this.metadata.name.startsWith(prefix));
return isSettingSystemNamespace || isObscurePrefix;
}