From c13022ddeb0afe4abd8b1beaf1c4af50a7ded0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Z=C3=B6rb?= Date: Fri, 19 Jan 2024 07:25:08 +0100 Subject: [PATCH] fix(lint): ignore @typescript-eslint/consistent-type-definitions at server/index it's required to use interface here as the global one is also an interface --- packages/contentful-ssg/package.json | 2 +- packages/contentful-ssg/src/server/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/contentful-ssg/package.json b/packages/contentful-ssg/package.json index aaf34ef..f4f19d3 100644 --- a/packages/contentful-ssg/package.json +++ b/packages/contentful-ssg/package.json @@ -55,7 +55,7 @@ }, "scripts": { "clean": "rimraf ./dist", - "lint": "eslint --color src --ext .ts", + "lint": "eslint --color src --fix --ext .ts", "test": "jest", "precompile": "npm run clean", "compile": "tsc --build", diff --git a/packages/contentful-ssg/src/server/index.ts b/packages/contentful-ssg/src/server/index.ts index 40e54bf..15996a9 100644 --- a/packages/contentful-ssg/src/server/index.ts +++ b/packages/contentful-ssg/src/server/index.ts @@ -19,6 +19,7 @@ app.use( ); declare module 'http' { + // eslint-disable-next-line @typescript-eslint/consistent-type-definitions interface IncomingHttpHeaders { 'x-contentful-topic': | 'ContentManagement.ContentType.create'