From 28a0c99ec54aa5cc59428e5eca720a060501b8ec Mon Sep 17 00:00:00 2001 From: Andy Gout Date: Sun, 27 Oct 2024 16:58:08 +0000 Subject: [PATCH] Use JSX automatic import transform --- package.json | 1 + rollup.config.js | 4 +++- src/components/App.jsx | 2 -- src/components/AppendedCoEntities.jsx | 2 +- src/components/AppendedDate.jsx | 2 +- src/components/AppendedDepictions.jsx | 2 +- src/components/AppendedEmployerCompany.jsx | 2 +- src/components/AppendedEntities.jsx | 2 +- src/components/AppendedFormatAndYear.jsx | 2 +- src/components/AppendedMembers.jsx | 2 +- src/components/AppendedPerformers.jsx | 2 +- src/components/AppendedProductionDates.jsx | 2 +- src/components/AppendedProductionTeamCredits.jsx | 2 +- src/components/AppendedQualifier.jsx | 2 +- src/components/AppendedRoles.jsx | 2 +- src/components/AppendedVenue.jsx | 2 +- src/components/CharactersList.jsx | 2 -- src/components/CommaSeparatedInstanceLinks.jsx | 2 +- src/components/CommaSeparatedMaterials.jsx | 2 +- src/components/CommaSeparatedProductions.jsx | 2 +- src/components/CreativeProductionsList.jsx | 2 -- src/components/CrewProductionsList.jsx | 2 -- src/components/Entities.jsx | 2 +- src/components/FestivalLinkWithContext.jsx | 2 +- src/components/Footer.jsx | 2 -- src/components/Head.jsx | 2 -- src/components/Header.jsx | 2 -- src/components/InstanceFacet.jsx | 2 -- src/components/InstanceLabel.jsx | 2 -- src/components/InstanceLink.jsx | 1 - src/components/InstanceLinksList.jsx | 2 -- src/components/JoinedRoles.jsx | 2 +- src/components/ListWrapper.jsx | 2 -- src/components/MaterialLinkWithContext.jsx | 2 +- src/components/MaterialsList.jsx | 2 -- src/components/Navigation.jsx | 2 -- src/components/PageSubtitle.jsx | 2 -- src/components/PageTitle.jsx | 2 -- src/components/PrependedSurInstance.jsx | 2 +- src/components/ProducerCredits.jsx | 2 +- src/components/ProducerEntities.jsx | 2 +- src/components/ProducerProductionsList.jsx | 2 +- src/components/ProductionLinkWithContext.jsx | 2 +- src/components/ProductionTeamCreditsList.jsx | 2 -- src/components/ProductionsList.jsx | 2 -- src/components/VenueLinkWithContext.jsx | 2 +- src/components/WritingCredits.jsx | 2 +- src/components/WritingEntities.jsx | 2 +- src/controllers/helpers/render-component-to-string.jsx | 1 - src/pages/ErrorPage.jsx | 2 -- src/pages/Home.jsx | 2 -- src/pages/instances/Award.jsx | 2 -- src/pages/instances/AwardCeremony.jsx | 2 +- src/pages/instances/Character.jsx | 2 -- src/pages/instances/Company.jsx | 2 +- src/pages/instances/Festival.jsx | 2 -- src/pages/instances/FestivalSeries.jsx | 2 -- src/pages/instances/Material.jsx | 2 +- src/pages/instances/Person.jsx | 2 +- src/pages/instances/Production.jsx | 2 +- src/pages/instances/Season.jsx | 2 -- src/pages/instances/Venue.jsx | 2 -- src/pages/lists/AwardCeremonies.jsx | 2 +- src/pages/lists/Awards.jsx | 2 -- src/pages/lists/Characters.jsx | 2 -- src/pages/lists/Companies.jsx | 2 -- src/pages/lists/FestivalSerieses.jsx | 2 -- src/pages/lists/Festivals.jsx | 2 +- src/pages/lists/Materials.jsx | 2 -- src/pages/lists/People.jsx | 2 -- src/pages/lists/Productions.jsx | 2 -- src/pages/lists/Seasons.jsx | 2 -- src/pages/lists/Venues.jsx | 2 +- 73 files changed, 40 insertions(+), 105 deletions(-) diff --git a/package.json b/package.json index afac0e88..c69cc901 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "morgan": "1.10.0", "preact": "10.22.0", "preact-render-to-string": "6.5.3", + "react": "npm:@preact/compat", "serve-favicon": "2.5.0" }, "devDependencies": { diff --git a/rollup.config.js b/rollup.config.js index 9cf97aa1..013a9b5c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,13 +20,15 @@ const serverBundle = { 'node:http', 'preact', 'preact-render-to-string', - 'preact/hooks' + 'preact/hooks', + 'react/jsx-runtime' ], watch: { clearScreen: false }, plugins: [ esbuild({ + jsx: 'automatic', jsxFactory: 'h', jsxFragment: 'Fragment' }), diff --git a/src/components/App.jsx b/src/components/App.jsx index 1d85e39b..18e05f21 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { Footer, Head, Header, InstanceLabel, Navigation, PageSubtitle, PageTitle } from './index.js'; import { CurrentPath } from '../contexts/index.js'; diff --git a/src/components/AppendedCoEntities.jsx b/src/components/AppendedCoEntities.jsx index 949e3a26..be881112 100644 --- a/src/components/AppendedCoEntities.jsx +++ b/src/components/AppendedCoEntities.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { Entities } from './index.js'; diff --git a/src/components/AppendedDate.jsx b/src/components/AppendedDate.jsx index 61a22f99..4b0ccf80 100644 --- a/src/components/AppendedDate.jsx +++ b/src/components/AppendedDate.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { formatDate } from '../lib/format-date.js'; diff --git a/src/components/AppendedDepictions.jsx b/src/components/AppendedDepictions.jsx index b1ed92c5..e4e1ea3e 100644 --- a/src/components/AppendedDepictions.jsx +++ b/src/components/AppendedDepictions.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; const AppendedDepictions = props => { diff --git a/src/components/AppendedEmployerCompany.jsx b/src/components/AppendedEmployerCompany.jsx index 9c73f86d..1b83fc1a 100644 --- a/src/components/AppendedEmployerCompany.jsx +++ b/src/components/AppendedEmployerCompany.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { CommaSeparatedInstanceLinks, InstanceLink } from './index.js'; diff --git a/src/components/AppendedEntities.jsx b/src/components/AppendedEntities.jsx index 5b262d56..520c9f18 100644 --- a/src/components/AppendedEntities.jsx +++ b/src/components/AppendedEntities.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { Entities } from './index.js'; diff --git a/src/components/AppendedFormatAndYear.jsx b/src/components/AppendedFormatAndYear.jsx index d2dd363e..27c534eb 100644 --- a/src/components/AppendedFormatAndYear.jsx +++ b/src/components/AppendedFormatAndYear.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; const AppendedFormatAndYear = props => { diff --git a/src/components/AppendedMembers.jsx b/src/components/AppendedMembers.jsx index e8aee974..46146de1 100644 --- a/src/components/AppendedMembers.jsx +++ b/src/components/AppendedMembers.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { CommaSeparatedInstanceLinks } from './index.js'; diff --git a/src/components/AppendedPerformers.jsx b/src/components/AppendedPerformers.jsx index 7ba9fde5..9ed994e1 100644 --- a/src/components/AppendedPerformers.jsx +++ b/src/components/AppendedPerformers.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { InstanceLink, JoinedRoles } from './index.js'; diff --git a/src/components/AppendedProductionDates.jsx b/src/components/AppendedProductionDates.jsx index 578d099e..202da016 100644 --- a/src/components/AppendedProductionDates.jsx +++ b/src/components/AppendedProductionDates.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { formatDate } from '../lib/format-date.js'; diff --git a/src/components/AppendedProductionTeamCredits.jsx b/src/components/AppendedProductionTeamCredits.jsx index 0b994067..1f2a2bc8 100644 --- a/src/components/AppendedProductionTeamCredits.jsx +++ b/src/components/AppendedProductionTeamCredits.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { AppendedCoEntities, AppendedEmployerCompany, AppendedMembers } from './index.js'; diff --git a/src/components/AppendedQualifier.jsx b/src/components/AppendedQualifier.jsx index d1c7afb4..3135d956 100644 --- a/src/components/AppendedQualifier.jsx +++ b/src/components/AppendedQualifier.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; const AppendedQualifier = props => { diff --git a/src/components/AppendedRoles.jsx b/src/components/AppendedRoles.jsx index 37e60d4c..253f4982 100644 --- a/src/components/AppendedRoles.jsx +++ b/src/components/AppendedRoles.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { JoinedRoles } from './index.js'; diff --git a/src/components/AppendedVenue.jsx b/src/components/AppendedVenue.jsx index 6242511d..fa011632 100644 --- a/src/components/AppendedVenue.jsx +++ b/src/components/AppendedVenue.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { VenueLinkWithContext } from './index.js'; diff --git a/src/components/CharactersList.jsx b/src/components/CharactersList.jsx index 3f4a0aa2..cdfe1698 100644 --- a/src/components/CharactersList.jsx +++ b/src/components/CharactersList.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { AppendedQualifier, InstanceLink, ListWrapper } from './index.js'; const CharactersList = props => { diff --git a/src/components/CommaSeparatedInstanceLinks.jsx b/src/components/CommaSeparatedInstanceLinks.jsx index e157a5a6..8c0f3c11 100644 --- a/src/components/CommaSeparatedInstanceLinks.jsx +++ b/src/components/CommaSeparatedInstanceLinks.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { InstanceLink } from './index.js'; diff --git a/src/components/CommaSeparatedMaterials.jsx b/src/components/CommaSeparatedMaterials.jsx index 7eece52f..433692cd 100644 --- a/src/components/CommaSeparatedMaterials.jsx +++ b/src/components/CommaSeparatedMaterials.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { MaterialLinkWithContext } from './index.js'; diff --git a/src/components/CommaSeparatedProductions.jsx b/src/components/CommaSeparatedProductions.jsx index c2677ea1..8024bff5 100644 --- a/src/components/CommaSeparatedProductions.jsx +++ b/src/components/CommaSeparatedProductions.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { ProductionLinkWithContext } from './index.js'; diff --git a/src/components/CreativeProductionsList.jsx b/src/components/CreativeProductionsList.jsx index 7f70b08d..d6760ef7 100644 --- a/src/components/CreativeProductionsList.jsx +++ b/src/components/CreativeProductionsList.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { AppendedProductionTeamCredits, ProductionLinkWithContext, ListWrapper } from './index.js'; const CreativeProductionsList = props => { diff --git a/src/components/CrewProductionsList.jsx b/src/components/CrewProductionsList.jsx index 7e4fcdcc..8642e335 100644 --- a/src/components/CrewProductionsList.jsx +++ b/src/components/CrewProductionsList.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { AppendedProductionTeamCredits, ProductionLinkWithContext, ListWrapper } from './index.js'; const CrewProductionsList = props => { diff --git a/src/components/Entities.jsx b/src/components/Entities.jsx index 77624a3c..a4e2d595 100644 --- a/src/components/Entities.jsx +++ b/src/components/Entities.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { AppendedMembers, InstanceLink } from './index.js'; diff --git a/src/components/FestivalLinkWithContext.jsx b/src/components/FestivalLinkWithContext.jsx index 2bb7e26c..763c7367 100644 --- a/src/components/FestivalLinkWithContext.jsx +++ b/src/components/FestivalLinkWithContext.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { InstanceLink, PrependedSurInstance } from './index.js'; diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index c80c5dac..0ea68113 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const Footer = () => { return ( diff --git a/src/components/Head.jsx b/src/components/Head.jsx index 452d177e..2b252e9b 100644 --- a/src/components/Head.jsx +++ b/src/components/Head.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const Head = props => { const { documentTitle } = props; diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 65001fef..8756258b 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const Header = () => { return ( diff --git a/src/components/InstanceFacet.jsx b/src/components/InstanceFacet.jsx index 8896b552..2977d9da 100644 --- a/src/components/InstanceFacet.jsx +++ b/src/components/InstanceFacet.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const InstanceFacet = props => { const { labelText, children } = props; diff --git a/src/components/InstanceLabel.jsx b/src/components/InstanceLabel.jsx index 763eaced..3b6812bd 100644 --- a/src/components/InstanceLabel.jsx +++ b/src/components/InstanceLabel.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { MODEL_TO_DISPLAY_NAME_MAP } from '../utils/constants.js'; const InstanceLabel = props => { diff --git a/src/components/InstanceLink.jsx b/src/components/InstanceLink.jsx index 26a33c1d..96124dd6 100644 --- a/src/components/InstanceLink.jsx +++ b/src/components/InstanceLink.jsx @@ -1,4 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars import { useContext } from 'preact/hooks'; import { CurrentPath } from '../contexts/index.js'; diff --git a/src/components/InstanceLinksList.jsx b/src/components/InstanceLinksList.jsx index 43b73d22..71748fdf 100644 --- a/src/components/InstanceLinksList.jsx +++ b/src/components/InstanceLinksList.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { InstanceLink, ListWrapper } from './index.js'; const InstanceLinksList = props => { diff --git a/src/components/JoinedRoles.jsx b/src/components/JoinedRoles.jsx index d4beef47..ba28a0c4 100644 --- a/src/components/JoinedRoles.jsx +++ b/src/components/JoinedRoles.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { AppendedQualifier, InstanceLink } from './index.js'; diff --git a/src/components/ListWrapper.jsx b/src/components/ListWrapper.jsx index 897731f0..8f97ee99 100644 --- a/src/components/ListWrapper.jsx +++ b/src/components/ListWrapper.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const ListWrapper = props => { const { children } = props; diff --git a/src/components/MaterialLinkWithContext.jsx b/src/components/MaterialLinkWithContext.jsx index 181efea7..efea03be 100644 --- a/src/components/MaterialLinkWithContext.jsx +++ b/src/components/MaterialLinkWithContext.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { AppendedFormatAndYear, InstanceLink, PrependedSurInstance, WritingCredits } from './index.js'; diff --git a/src/components/MaterialsList.jsx b/src/components/MaterialsList.jsx index f3709f51..6dbf7e81 100644 --- a/src/components/MaterialsList.jsx +++ b/src/components/MaterialsList.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { ListWrapper, MaterialLinkWithContext } from './index.js'; const MaterialsList = props => { diff --git a/src/components/Navigation.jsx b/src/components/Navigation.jsx index 4da0774f..2101d657 100644 --- a/src/components/Navigation.jsx +++ b/src/components/Navigation.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const Navigation = () => { return ( diff --git a/src/components/PageSubtitle.jsx b/src/components/PageSubtitle.jsx index 2e4cc3ef..ce1a573d 100644 --- a/src/components/PageSubtitle.jsx +++ b/src/components/PageSubtitle.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const PageSubtitle = props => { const { text } = props; diff --git a/src/components/PageTitle.jsx b/src/components/PageTitle.jsx index 4e51d962..02f0fff8 100644 --- a/src/components/PageTitle.jsx +++ b/src/components/PageTitle.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - const PageTitle = props => { const { text } = props; diff --git a/src/components/PrependedSurInstance.jsx b/src/components/PrependedSurInstance.jsx index 337a0852..028570d0 100644 --- a/src/components/PrependedSurInstance.jsx +++ b/src/components/PrependedSurInstance.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { InstanceLink } from './index.js'; diff --git a/src/components/ProducerCredits.jsx b/src/components/ProducerCredits.jsx index 4ef595ad..65423ea4 100644 --- a/src/components/ProducerCredits.jsx +++ b/src/components/ProducerCredits.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { ProducerEntities } from './index.js'; import { capitalise } from '../lib/strings.js'; diff --git a/src/components/ProducerEntities.jsx b/src/components/ProducerEntities.jsx index 1cf5b681..ac3142f7 100644 --- a/src/components/ProducerEntities.jsx +++ b/src/components/ProducerEntities.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { CommaSeparatedInstanceLinks, InstanceLink } from './index.js'; diff --git a/src/components/ProducerProductionsList.jsx b/src/components/ProducerProductionsList.jsx index 4687288a..f3737447 100644 --- a/src/components/ProducerProductionsList.jsx +++ b/src/components/ProducerProductionsList.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { ProducerCredits, ProductionLinkWithContext, ListWrapper } from './index.js'; diff --git a/src/components/ProductionLinkWithContext.jsx b/src/components/ProductionLinkWithContext.jsx index b24c21c7..73f2ac8b 100644 --- a/src/components/ProductionLinkWithContext.jsx +++ b/src/components/ProductionLinkWithContext.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { AppendedProductionDates, AppendedVenue, InstanceLink, PrependedSurInstance } from './index.js'; diff --git a/src/components/ProductionTeamCreditsList.jsx b/src/components/ProductionTeamCreditsList.jsx index 83dca05e..21bdde06 100644 --- a/src/components/ProductionTeamCreditsList.jsx +++ b/src/components/ProductionTeamCreditsList.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { AppendedEntities, ListWrapper } from './index.js'; const ProductionTeamCreditsList = props => { diff --git a/src/components/ProductionsList.jsx b/src/components/ProductionsList.jsx index ff484a83..acb44648 100644 --- a/src/components/ProductionsList.jsx +++ b/src/components/ProductionsList.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { ListWrapper, ProductionLinkWithContext } from './index.js'; const ProductionsList = props => { diff --git a/src/components/VenueLinkWithContext.jsx b/src/components/VenueLinkWithContext.jsx index a3f0b340..ab73e7e0 100644 --- a/src/components/VenueLinkWithContext.jsx +++ b/src/components/VenueLinkWithContext.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { InstanceLink, PrependedSurInstance } from './index.js'; diff --git a/src/components/WritingCredits.jsx b/src/components/WritingCredits.jsx index a18e3537..1e04014e 100644 --- a/src/components/WritingCredits.jsx +++ b/src/components/WritingCredits.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { WritingEntities } from './index.js'; import { capitalise } from '../lib/strings.js'; diff --git a/src/components/WritingEntities.jsx b/src/components/WritingEntities.jsx index dc59ee1f..7898a22e 100644 --- a/src/components/WritingEntities.jsx +++ b/src/components/WritingEntities.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { AppendedFormatAndYear, InstanceLink, PrependedSurInstance, WritingCredits } from './index.js'; diff --git a/src/controllers/helpers/render-component-to-string.jsx b/src/controllers/helpers/render-component-to-string.jsx index 642354c9..4f284d1f 100644 --- a/src/controllers/helpers/render-component-to-string.jsx +++ b/src/controllers/helpers/render-component-to-string.jsx @@ -1,4 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars import render from 'preact-render-to-string'; const renderComponentToString = (PageComponent, props) => { diff --git a/src/pages/ErrorPage.jsx b/src/pages/ErrorPage.jsx index 08e5fc64..4c28f444 100644 --- a/src/pages/ErrorPage.jsx +++ b/src/pages/ErrorPage.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App } from '../components/index.js'; const ErrorPage = props => { diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index c486393e..35f54ffb 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App } from '../components/index.js'; const Home = props => { diff --git a/src/pages/instances/Award.jsx b/src/pages/instances/Award.jsx index 1db497d5..3d6e6aed 100644 --- a/src/pages/instances/Award.jsx +++ b/src/pages/instances/Award.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceFacet, InstanceLinksList } from '../../components/index.js'; const Award = props => { diff --git a/src/pages/instances/AwardCeremony.jsx b/src/pages/instances/AwardCeremony.jsx index fa6015ca..464e5134 100644 --- a/src/pages/instances/AwardCeremony.jsx +++ b/src/pages/instances/AwardCeremony.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, diff --git a/src/pages/instances/Character.jsx b/src/pages/instances/Character.jsx index 9390df8b..721a778c 100644 --- a/src/pages/instances/Character.jsx +++ b/src/pages/instances/Character.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, AppendedDepictions, diff --git a/src/pages/instances/Company.jsx b/src/pages/instances/Company.jsx index 5257b9ad..b3277da8 100644 --- a/src/pages/instances/Company.jsx +++ b/src/pages/instances/Company.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, diff --git a/src/pages/instances/Festival.jsx b/src/pages/instances/Festival.jsx index 2ece6e54..3fe83941 100644 --- a/src/pages/instances/Festival.jsx +++ b/src/pages/instances/Festival.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceFacet, InstanceLink, ProductionsList } from '../../components/index.js'; const Festival = props => { diff --git a/src/pages/instances/FestivalSeries.jsx b/src/pages/instances/FestivalSeries.jsx index db164d4d..49358923 100644 --- a/src/pages/instances/FestivalSeries.jsx +++ b/src/pages/instances/FestivalSeries.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceFacet, InstanceLinksList } from '../../components/index.js'; const FestivalSeries = props => { diff --git a/src/pages/instances/Material.jsx b/src/pages/instances/Material.jsx index 05d63aa1..a2508b35 100644 --- a/src/pages/instances/Material.jsx +++ b/src/pages/instances/Material.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, diff --git a/src/pages/instances/Person.jsx b/src/pages/instances/Person.jsx index 318ae040..91997dd2 100644 --- a/src/pages/instances/Person.jsx +++ b/src/pages/instances/Person.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, diff --git a/src/pages/instances/Production.jsx b/src/pages/instances/Production.jsx index 8785281a..69e8afb1 100644 --- a/src/pages/instances/Production.jsx +++ b/src/pages/instances/Production.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, diff --git a/src/pages/instances/Season.jsx b/src/pages/instances/Season.jsx index 6b0f0be8..5bcfc661 100644 --- a/src/pages/instances/Season.jsx +++ b/src/pages/instances/Season.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceFacet, ProductionsList } from '../../components/index.js'; const Season = props => { diff --git a/src/pages/instances/Venue.jsx b/src/pages/instances/Venue.jsx index e0136ff7..2fbe9f3f 100644 --- a/src/pages/instances/Venue.jsx +++ b/src/pages/instances/Venue.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceFacet, InstanceLink, InstanceLinksList, ProductionsList } from '../../components/index.js'; const Venue = props => { diff --git a/src/pages/lists/AwardCeremonies.jsx b/src/pages/lists/AwardCeremonies.jsx index 627c4c6c..694c4235 100644 --- a/src/pages/lists/AwardCeremonies.jsx +++ b/src/pages/lists/AwardCeremonies.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, InstanceLink, ListWrapper } from '../../components/index.js'; diff --git a/src/pages/lists/Awards.jsx b/src/pages/lists/Awards.jsx index 174251ec..427746e9 100644 --- a/src/pages/lists/Awards.jsx +++ b/src/pages/lists/Awards.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceLinksList } from '../../components/index.js'; const Awards = props => { diff --git a/src/pages/lists/Characters.jsx b/src/pages/lists/Characters.jsx index 4a191d7e..81f88e11 100644 --- a/src/pages/lists/Characters.jsx +++ b/src/pages/lists/Characters.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceLinksList } from '../../components/index.js'; const Characters = props => { diff --git a/src/pages/lists/Companies.jsx b/src/pages/lists/Companies.jsx index f3446263..1e5b2a80 100644 --- a/src/pages/lists/Companies.jsx +++ b/src/pages/lists/Companies.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceLinksList } from '../../components/index.js'; const Companies = props => { diff --git a/src/pages/lists/FestivalSerieses.jsx b/src/pages/lists/FestivalSerieses.jsx index e9f85212..c5f5ab70 100644 --- a/src/pages/lists/FestivalSerieses.jsx +++ b/src/pages/lists/FestivalSerieses.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceLinksList } from '../../components/index.js'; const FestivalSerieses = props => { diff --git a/src/pages/lists/Festivals.jsx b/src/pages/lists/Festivals.jsx index 92ef2b0c..fd7d0211 100644 --- a/src/pages/lists/Festivals.jsx +++ b/src/pages/lists/Festivals.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, InstanceLink, ListWrapper } from '../../components/index.js'; diff --git a/src/pages/lists/Materials.jsx b/src/pages/lists/Materials.jsx index c1d38d5a..b09630a4 100644 --- a/src/pages/lists/Materials.jsx +++ b/src/pages/lists/Materials.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, MaterialsList } from '../../components/index.js'; const Materials = props => { diff --git a/src/pages/lists/People.jsx b/src/pages/lists/People.jsx index 184173e4..6e210995 100644 --- a/src/pages/lists/People.jsx +++ b/src/pages/lists/People.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceLinksList } from '../../components/index.js'; const People = props => { diff --git a/src/pages/lists/Productions.jsx b/src/pages/lists/Productions.jsx index e6adebe7..06723479 100644 --- a/src/pages/lists/Productions.jsx +++ b/src/pages/lists/Productions.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, ProductionsList } from '../../components/index.js'; const Productions = props => { diff --git a/src/pages/lists/Seasons.jsx b/src/pages/lists/Seasons.jsx index aa0f9165..16d2a8f3 100644 --- a/src/pages/lists/Seasons.jsx +++ b/src/pages/lists/Seasons.jsx @@ -1,5 +1,3 @@ -import { h } from 'preact'; // eslint-disable-line no-unused-vars - import { App, InstanceLinksList } from '../../components/index.js'; const Seasons = props => { diff --git a/src/pages/lists/Venues.jsx b/src/pages/lists/Venues.jsx index e58a2a0e..bc8dfcd7 100644 --- a/src/pages/lists/Venues.jsx +++ b/src/pages/lists/Venues.jsx @@ -1,4 +1,4 @@ -import { Fragment, h } from 'preact'; // eslint-disable-line no-unused-vars +import { Fragment } from 'preact'; import { App, InstanceLink, ListWrapper } from '../../components/index.js';