Skip to content

Commit

Permalink
update eslint rules along with typescript-eslint v8
Browse files Browse the repository at this point in the history
  • Loading branch information
uenoB committed Aug 1, 2024
1 parent f6baa0e commit 613ea63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export default [
files: ['**/*.ts'],
rules: {
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/ban-types': 'error',
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-type-exports': 'error',
Expand Down
7 changes: 2 additions & 5 deletions packages/page/src/__test__/debug-print.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ interface NFA {
vertexes: NFAVertex[]
}

export const toNFA = async <
Key extends 'moduleNameMap' | 'stemMap' | 'fileNameMap',
Base
>(
indexKey: Key,
export const toNFA = async <Base>(
indexKey: 'moduleNameMap' | 'stemMap' | 'fileNameMap',
node: PublicTree<Base> | AssetTree
): Promise<NFA> => {
const vertexes = new Map<PublicTree<Base> | AssetTree, string>()
Expand Down
1 change: 1 addition & 0 deletions packages/page/src/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ class PageFactory<
}
}

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface PageRec extends Page<unknown, PageRec, PageRec> {}

export class Page<
Expand Down

0 comments on commit 613ea63

Please sign in to comment.