From f728052ad4e2e114e5dd5957f3c4030db5aaf514 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Fri, 30 Dec 2022 17:33:49 +0100 Subject: [PATCH] chore: Fixed linter warnings --- .../shared/lab/components/footer.js | 33 ------------------- .../shared/lab/components/header.js | 1 - packages/new-design/shared/pages/index.mjs | 4 +-- scripts/reconfigure.mjs | 2 +- 4 files changed, 3 insertions(+), 37 deletions(-) diff --git a/packages/new-design/shared/lab/components/footer.js b/packages/new-design/shared/lab/components/footer.js index 70a8c22cce4..6eec318a1ec 100644 --- a/packages/new-design/shared/lab/components/footer.js +++ b/packages/new-design/shared/lab/components/footer.js @@ -1,7 +1,4 @@ import Logo from 'shared/components/logos/freesewing.js' -import OsiLogo from 'shared/components/logos/osi.js' -import CreativeCommonsLogo from 'shared/components/logos/cc.js' -import CcByLogo from 'shared/components/logos/cc-by.js' import { useTranslation } from 'next-i18next' import Ribbon from 'shared/components/ribbon.js' import Link from 'next/link' @@ -19,36 +16,6 @@ const link = 'text-secondary font-bold hover:pointer hover:underline px-1' const accent = 'text-accent font-bold text-lg px-1 block sm:inline' const freesewing = 'px-1 text-lg font-bold block sm:inline' -// Keep these translations in the component because they're only used here -const translations = { - cc: ( - - Content on FreeSewing.org is available under{' '} - - a Creative Commons license - - - ), - mit: ( - - The FreeSewing source code is{' '} - - available on Github - {' '} - under{' '} - - the MIT license - - - ), - sponsors: ( - <> - FreeSewing is sponsored by these{' '} - awesome companies - - ), -} - const icon = { className: 'w-8 lg:w-12 h-8 lg:h-12' } const social = { Discord: { diff --git a/packages/new-design/shared/lab/components/header.js b/packages/new-design/shared/lab/components/header.js index 3ac237b87e4..63ca3823d4b 100644 --- a/packages/new-design/shared/lab/components/header.js +++ b/packages/new-design/shared/lab/components/header.js @@ -2,7 +2,6 @@ import { useState, useEffect } from 'react' import Link from 'next/link' import ThemePicker from 'shared/components/theme-picker.js' import LocalePicker from 'shared/components/locale-picker.js' -import DesignPicker from 'site/components/design-picker.js' import CloseIcon from 'shared/components/icons/close.js' import MenuIcon from 'shared/components/icons/menu.js' import HelpIcon from 'shared/components/icons/help.js' diff --git a/packages/new-design/shared/pages/index.mjs b/packages/new-design/shared/pages/index.mjs index a7141ecb7d4..bdb15bbfc39 100644 --- a/packages/new-design/shared/pages/index.mjs +++ b/packages/new-design/shared/pages/index.mjs @@ -21,7 +21,7 @@ const translations = { tips: { en: ( - Edit the files in the design folder, and we'll auto-update your design + Edit the files in the design folder, and we'll auto-update your design ), nl: ( @@ -33,7 +33,7 @@ const translations = { }, } -const HomePage = (props) => { +const HomePage = () => { const app = useApp() const router = useRouter() const { t } = useTranslation(['common', 'patrons', 'locales', 'themes']) diff --git a/scripts/reconfigure.mjs b/scripts/reconfigure.mjs index bca3f6beaa3..4348b53afb5 100644 --- a/scripts/reconfigure.mjs +++ b/scripts/reconfigure.mjs @@ -59,7 +59,7 @@ const copyThese = [ }, ] for (const cp of copyThese) { - fs.copyFile(path.join(repo.path, ...cp.from), path.join(repo.path, ...cp.to), (err) => null) + fs.copyFile(path.join(repo.path, ...cp.from), path.join(repo.path, ...cp.to), () => null) } // Step 1: Generate main README file from template