Skip to content

Commit

Permalink
Fix ESLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 5, 2024
1 parent 9cad272 commit 8f23061
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client-node/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ClientNode, LocalPair, Log, MemoryStore, type Meta } from '../index.js'

type MyMeta = Meta & {
type MyMeta = {
extra: number
}
} & Meta

type Headers = {
lang: string
Expand Down
12 changes: 12 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ export default [
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'n/no-unsupported-features/node-builtins': [
'error',
{
ignores: [
'navigator',
'WebSocket',
'test',
'test.afterEach',
'test.beforeEach'
]
}
],
'no-invalid-this': 'off'
}
},
Expand Down
4 changes: 2 additions & 2 deletions log/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ log.add({ name: 'Kate', type: 'user/add' })

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

type RenameAction = Action & {
type RenameAction = {
name: string
type: 'rename'
}
} & Action

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

0 comments on commit 8f23061

Please sign in to comment.