Skip to content

Commit 8f23061

Browse files
committed
Fix ESLint warnings
1 parent 9cad272 commit 8f23061

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

client-node/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ClientNode, LocalPair, Log, MemoryStore, type Meta } from '../index.js'
22

3-
type MyMeta = Meta & {
3+
type MyMeta = {
44
extra: number
5-
}
5+
} & Meta
66

77
type Headers = {
88
lang: string

eslint.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ export default [
1414
},
1515
rules: {
1616
'@typescript-eslint/no-explicit-any': 'off',
17+
'n/no-unsupported-features/node-builtins': [
18+
'error',
19+
{
20+
ignores: [
21+
'navigator',
22+
'WebSocket',
23+
'test',
24+
'test.afterEach',
25+
'test.beforeEach'
26+
]
27+
}
28+
],
1729
'no-invalid-this': 'off'
1830
}
1931
},

log/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ log.add({ name: 'Kate', type: 'user/add' })
66

77
log.add({ name: 'Kate', type: 'user/add' }, { extra: 1 })
88

9-
type RenameAction = Action & {
9+
type RenameAction = {
1010
name: string
1111
type: 'rename'
12-
}
12+
} & Action
1313

1414
log.type<RenameAction>('rename', action => {
1515
document.title = action.name

0 commit comments

Comments
 (0)