Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit d5b2080

Browse files
committed
Fix typescript-eslint warnings
1 parent d2e0fec commit d5b2080

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
'import/no-unresolved': 'off',
1616
'prettier/prettier': 'error',
1717
'@typescript-eslint/ban-ts-ignore': 'off',
18+
'@typescript-eslint/ban-ts-comment': 'off',
1819
},
1920
parser: '@typescript-eslint/parser',
2021
parserOptions: {

src/PlaywrightEnvironment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable no-console */
2-
/* eslint-disable @typescript-eslint/ban-ts-ignore */
32
import type { Config as JestConfig } from '@jest/types'
43
import type { Event, State } from 'jest-circus'
54
import type { Browser } from 'playwright-core'

src/types.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ export type GenericBrowser = PlaywrightBrowserType<
1717
WebKitBrowser | ChromiumBrowser | FirefoxBrowser
1818
>
1919

20+
type SelectorFunction = (...args: any[]) => void
21+
2022
export type SelectorType = {
21-
script: string | Function | { path?: string; content?: string }
23+
script: string | SelectorFunction | { path?: string; content?: string }
2224
name: string
2325
}
2426

0 commit comments

Comments
 (0)