File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"parser": "@typescript-eslint/parser",
3
3
"extends": [
4
- "plugin:@typescript-eslint/recommended ",
5
- "./node_modules/kcd-scripts/eslint.js "
4
+ "./node_modules/kcd-scripts/eslint.js ",
5
+ "plugin:import/typescript "
6
6
],
7
+ "plugins": ["@typescript-eslint"],
7
8
"rules": {
8
9
"babel/new-cap": "off",
9
10
"func-names": "off",
12
13
"testing-library/no-await-sync-query": "off",
13
14
"testing-library/no-dom-import": "off",
14
15
"testing-library/prefer-screen-queries": "off",
15
- "@typescript-eslint/no-var-requires": "off"
16
+ "no-unused-vars": "off",
17
+ "@typescript-eslint/no-unused-vars": ["error"]
16
18
},
17
19
"overrides": [
18
20
{
19
- "files": ["wdio.conf.js", "*/**/*.e2e.js "],
21
+ "files": ["wdio.conf.js", "*/**/*.e2e.* "],
20
22
"globals": {
21
23
"browser": "readonly"
22
24
}
Original file line number Diff line number Diff line change 1
- /* eslint-disable @typescript-eslint/no-implied-eval babel/no-invalid-this */
1
+ /* eslint-disable babel/no-invalid-this, no-eval */
2
2
3
3
import path from 'path'
4
4
import fs from 'fs'
@@ -30,7 +30,7 @@ async function injectDOMTestingLibrary(container: Element) {
30
30
await container . execute ( DOM_TESTING_LIBRARY_UMD )
31
31
32
32
if ( _config ) {
33
- await container . execute ( function ( config ) {
33
+ await container . execute ( function ( config : Config ) {
34
34
window . TestingLibraryDom . configure ( config )
35
35
} , _config )
36
36
}
@@ -136,7 +136,7 @@ async function setupBrowser(browser: BrowserObject | MultiRemoteBrowserObject) {
136
136
// add query to scoped to Element
137
137
browser . addCommand (
138
138
queryName ,
139
- function ( ...args ) {
139
+ function ( ...args : any [ ] ) {
140
140
// @ts -expect-error
141
141
return within ( this as Element ) [ queryName ] ( ...args )
142
142
} ,
You can’t perform that action at this time.
0 commit comments