diff --git a/src/features/legal/errors.js b/src/features/legal/errors.js index 52405c4..6d62027 100644 --- a/src/features/legal/errors.js +++ b/src/features/legal/errors.js @@ -18,5 +18,5 @@ export class FetchError extends Error { constructor (message) { super(message); this.name = 'FetchError'; - }; + } }; diff --git a/src/features/search/components/Searchbar.vue b/src/features/search/components/Searchbar.vue index f8db768..78e348d 100644 --- a/src/features/search/components/Searchbar.vue +++ b/src/features/search/components/Searchbar.vue @@ -33,7 +33,7 @@ const submitSearch = function () { name: 'searchResults', query: { q: searchQuery.value } }); - }; + } }; diff --git a/src/features/settings/utils/getSetting.js b/src/features/settings/utils/getSetting.js index 885dbb5..cc1961b 100644 --- a/src/features/settings/utils/getSetting.js +++ b/src/features/settings/utils/getSetting.js @@ -31,12 +31,12 @@ export const getSettingRecursively = function getSettingRecursively (sectionPath return oneSettingsLevel(cursor.slice(1, cursor.length), setting); } else { return setting; - }; + } } else if (cursor.length <= 1) { return setting; } else { return; - }; + } }; return oneSettingsLevel(sectionPath, { content: settings }); }; diff --git a/src/features/settings/utils/settingsValidator.js b/src/features/settings/utils/settingsValidator.js index 1f84032..61e3d6d 100644 --- a/src/features/settings/utils/settingsValidator.js +++ b/src/features/settings/utils/settingsValidator.js @@ -33,7 +33,7 @@ export const assertType = function assertType (value, path) { export const validateSelectionOptions = function validateSelectionOptions (options, path) { if (!Array.isArray(options) || options.length === 0) { throw new Error(`[settings] "${path}.options" must be a non-empty array`); - }; + } options.forEach((opt, i) => { assertString(opt.name, `${path}.options[${i}].name`); assertString(opt.i18n, `${path}.options[${i}].i18n`); @@ -61,7 +61,7 @@ export const validateEntry = function validateEntry (entry, path) { if (typeof entry.allowMultiple !== 'boolean' && entry.allowMultiple) { throw new Error(`[settings] "${path}.allowMultiple" must be a boolean`); } - }; + } if (entry.default !== undefined) { if (entry.type === 'bool' && typeof entry.default !== 'boolean') { throw new Error(`[settings] "${path}.default" must be a boolean`); @@ -89,12 +89,12 @@ export const validateEntry = function validateEntry (entry, path) { } else { if (typeof entry.default !== 'string') { throw new Error(`[settings] "${path}.default" must be a string`); - }; + } if (!entry.options.map((option) => option.name).includes(entry.default)) { throw new Error(`[settings] option "${path}.default" does not exist`); - }; + } } - }; + } } }; @@ -104,7 +104,7 @@ export const validateFirstLevelSection = function validateFirstLevelSection (sec if (!Array.isArray(section.content)) { throw new Error(`[settings] "${path}.content" must be an array`); - }; + } section.content.forEach((entry, i) => validateEntry(entry, `${path}.content[${i}]`) diff --git a/src/i18n.js b/src/i18n.js index 24e7d1f..5a14219 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -48,7 +48,7 @@ export async function loadLanguage (locale) { if (loadedLanguages.has(locale)) { i18n.global.locale.value = locale; return; - }; + } const messages = (await import(`./locales/${locale}.json`)).default; diff --git a/src/router/index.js b/src/router/index.js index c571f39..99e96c4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -78,7 +78,7 @@ export const updatePageTitle = function updatePageTitle (route) { document.title = `${title} - Seekra`; } else { document.title = 'Seekra'; - }; + } }; // remove trailing slash(es) @@ -90,7 +90,7 @@ router.beforeEach((route) => { hash: route.hash, replace: true }; - }; + } }); export default router; diff --git a/src/utils/cssDimensions.js b/src/utils/cssDimensions.js index 9214e3f..4dc5922 100644 --- a/src/utils/cssDimensions.js +++ b/src/utils/cssDimensions.js @@ -25,7 +25,7 @@ export const ensureUnit = function (d) { // if it ends with a number if (/\d$/.test(d)) { d += 'px'; - }; + } return d; };