Skip to content

Commit

Permalink
fix(lint): ignore @typescript-eslint/consistent-type-definitions at s…
Browse files Browse the repository at this point in the history
…erver/index

it's required to use interface here as the global one is also an interface
  • Loading branch information
Ben Zörb committed Jan 19, 2024
1 parent d48e664 commit c13022d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contentful-ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/contentful-ssg/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c13022d

Please sign in to comment.