Skip to content

Commit d4ae392

Browse files
committed
style: fix issues with latest linter rules
1 parent d82e881 commit d4ae392

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ export class Notion {
106106
this.client = got.extend({
107107
prefixUrl: 'https://api.notion.com/v1',
108108
headers: {
109+
/* eslint-disable @typescript-eslint/naming-convention */
109110
'authorization': `Bearer ${token}`,
110111
'notion-version': version,
112+
/* eslint-enable @typescript-eslint/naming-convention */
111113
},
112114
responseType: 'json',
113115
});

source/node.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export class NodeManager {
8585
public async update(entities: FullEntity[]): Promise<void> {
8686
// get entries with relationship build-in
8787
const old = new Map<string, NodeInput>(
88-
(await this.cache.get('nodeGraph')) ?? [],
88+
((await this.cache.get('nodeGraph')) as
89+
| Array<[string, NodeInput]>
90+
| undefined) ?? [],
8991
);
9092
const current = this.computeNodeGraph(entities);
9193
const { added, updated, removed, unchanged } = computeChanges(old, current);

0 commit comments

Comments
 (0)