Skip to content

Commit

Permalink
fixed ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Oct 8, 2024
1 parent 9172de0 commit 8d84723
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 473 deletions.
4 changes: 1 addition & 3 deletions app/api/book-paths/route.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {NextRequest, NextResponse} from "next/server"
import {revalidateTag, unstable_cache as nextCache} from "next/cache"
import {getEntityFromPath} from "@lib/gql/gql-queries"
import {NextResponse} from "next/server"
import {getLegacyBookPaths} from "@lib/utils/getLegacyBookPaths"

export const revalidate = 86400
Expand Down
3 changes: 1 addition & 2 deletions app/preview/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import {isPreviewMode} from "@lib/drupal/is-preview-mode"

const PreviewPage = async ({params}: PageProps) => {
if (!isPreviewMode()) notFound()
const {entity, error} = await getEntityFromPath<NodeUnion>(getPathFromContext({params}), true)
const {entity} = await getEntityFromPath<NodeUnion>(getPathFromContext({params}), true)

if (error) throw new Error(error)
if (!entity) notFound()

return (
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"@mui/base": "5.0.0-beta.58",
"@next/third-parties": "^14.2.14",
"@tailwindcss/container-queries": "^0.1.1",
"@types/node": "^22.7.4",
"@types/node": "^22.7.5",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"algoliasearch": "5.7.0",
"algoliasearch": "5.8.0",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
"decanter": "^7.3.0",
Expand All @@ -31,7 +31,7 @@
"graphql-request": "^7.1.0",
"graphql-tag": "^2.12.6",
"html-entities": "^2.5.2",
"html-react-parser": "^5.1.17",
"html-react-parser": "^5.1.18",
"next": "^14.2.14",
"plaiceholder": "^3.0.0",
"postcss": "^8.4.47",
Expand All @@ -51,10 +51,10 @@
},
"devDependencies": {
"@graphql-codegen/add": "^5.0.3",
"@graphql-codegen/cli": "^5.0.2",
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/import-types-preset": "^3.0.0",
"@graphql-codegen/typescript-graphql-request": "^6.2.0",
"@graphql-codegen/typescript-operations": "^4.2.3",
"@graphql-codegen/typescript-operations": "^4.3.0",
"@next/bundle-analyzer": "^14.2.14",
"@storybook/addon-essentials": "^8.3.5",
"@storybook/addon-interactions": "^8.3.5",
Expand All @@ -67,7 +67,7 @@
"@types/react-slick": "^0.23.13",
"concurrently": "^9.0.1",
"encoding": "^0.1.13",
"eslint": "^9.11.1",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.14",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-deprecation": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils/getLegacyBookPaths.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {BooksWorkIdQuery, BooksWorkIdQueryVariables, Maybe, NodeSupBook} from "@lib/gql/__generated__/drupal"
import {BooksWorkIdQuery, BooksWorkIdQueryVariables} from "@lib/gql/__generated__/drupal"
import {graphqlClient} from "@lib/gql/gql-client"
import {unstable_cache as nextCache} from "next/cache"

Expand Down
Loading

0 comments on commit 8d84723

Please sign in to comment.