diff --git a/.eslintignore b/.eslintignore index 12b3abfb..bc126872 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,4 +3,4 @@ dist public node_modules *.esm.js -drupal \ No newline at end of file +/drupal diff --git a/.eslintrc.json b/.eslintrc.json index 7d2bc200..e37c6a44 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -19,6 +19,11 @@ "node": true, "jest": true }, + "globals": { + "Drupal": true, + "drupalSettings": true, + "jQuery": true + }, "rules": { "react/prop-types": 0, "prettier/prettier": ["error"], diff --git a/examples/example-auth/types/next-auth.d.ts b/examples/example-auth/types/next-auth.d.ts index 30431109..c81ae396 100644 --- a/examples/example-auth/types/next-auth.d.ts +++ b/examples/example-auth/types/next-auth.d.ts @@ -1,4 +1,4 @@ -import { DefaultSession, Session } from "next-auth" +import { DefaultSession } from "next-auth" declare module "next-auth" { interface Session { diff --git a/examples/example-custom-cache/lib/drupal.ts b/examples/example-custom-cache/lib/drupal.ts index cf77107e..9e990b49 100644 --- a/examples/example-custom-cache/lib/drupal.ts +++ b/examples/example-custom-cache/lib/drupal.ts @@ -1,4 +1,4 @@ -import { Experiment_DrupalClient, DataCache } from "next-drupal" +import { DataCache, DrupalClient } from "next-drupal" import Redis from "ioredis" const redis = new Redis(process.env.REDIS_URL) diff --git a/packages/next-drupal/package.json b/packages/next-drupal/package.json index 76629229..ad0b87ba 100644 --- a/packages/next-drupal/package.json +++ b/packages/next-drupal/package.json @@ -7,7 +7,7 @@ "type": "module", "main": "dist/index.cjs", "module": "dist/index.modern.js", - "types": "dist/types.d.ts", + "types": "dist/index.d.ts", "license": "MIT", "publishConfig": { "access": "public" diff --git a/www/pages/learn/index.tsx b/www/pages/learn/index.tsx index 20deeae1..dade53d7 100644 --- a/www/pages/learn/index.tsx +++ b/www/pages/learn/index.tsx @@ -1,4 +1,3 @@ -import { getAllMdxNodes } from "next-mdx/server" import Link from "next/link" import { Tutorial } from "types"