Skip to content

Commit

Permalink
chore: Bump eslint (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Jan 8, 2025
1 parent 8d3a63f commit 62eab1a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 31 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import appiumConfig from '@appium/eslint-config-appium-ts';

export default [
...appiumConfig,
];
11 changes: 3 additions & 8 deletions lib/driver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _ from 'lodash';
import {BaseDriver, STANDARD_CAPS} from 'appium/driver';
import Chromedriver from 'appium-chromedriver';
import {Chromedriver} from 'appium-chromedriver';

const CD_CONSTRAINTS = /** @type {const} */ ({
chromedriverPort: { isNumber: true, },
Expand All @@ -23,7 +23,6 @@ const EDGE_VENDOR_PREFIX = 'ms:';
* @extends {BaseDriver<CDConstraints>}
* @implements {ExternalDriver<CDConstraints>}
*/
// @ts-ignore
export class ChromiumDriver extends BaseDriver {
desiredCapConstraints = CD_CONSTRAINTS;
_proxyActive = false;
Expand All @@ -32,7 +31,6 @@ export class ChromiumDriver extends BaseDriver {
cd;

/** @type {DriverOpts<CDConstraints>} */
// @ts-ignore
opts;

proxyReqRes;
Expand Down Expand Up @@ -63,7 +61,6 @@ export class ChromiumDriver extends BaseDriver {
* @param {W3CChromiumDriverCaps} [w3cCapabilities]
* @returns {Promise<[string,ChromiumDriverCaps]>}
*/
// @ts-ignore
async createSession(
jsonwpDesiredCapabilities,
jsonwpRequiredCaps,
Expand Down Expand Up @@ -111,12 +108,10 @@ export class ChromiumDriver extends BaseDriver {
/**
*
* @param {string} [sessionId]
* @param {DriverData[]} [driverData]
* @returns {Promise<void>}
*/
async deleteSession(sessionId, driverData) {
// @ts-ignore
await super.deleteSession(sessionId, driverData);
async deleteSession(sessionId) {
await super.deleteSession(sessionId);
this._proxyActive = false;
this._bidiProxyUrl = null;
this.proxyReqRes = null;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
"types": "./build/lib/driver.d.ts",
"devDependencies": {
"@appium/eslint-config-appium": "^8.0.5",
"@appium/eslint-config-appium-ts": "^1.0.0",
"@appium/tsconfig": "^0.x",
"@appium/types": "^0.x",
"@semantic-release/changelog": "^6.0.3",
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/driver.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable mocha/no-top-level-hooks */
import { waitForCondition } from 'asyncbox';
import path from 'path';
import {remote} from 'webdriverio';
Expand Down Expand Up @@ -133,7 +134,7 @@ describe('ChromeDriver', function() {
try {
networkResponses.should.not.be.empty;
return true;
} catch (ign) {
} catch {
return false;
}
},
Expand All @@ -142,7 +143,7 @@ describe('ChromeDriver', function() {
intervalMs: 100,
},
);
} catch (err) {
} catch {
networkResponses.should.not.be.empty;
}
});
Expand Down

0 comments on commit 62eab1a

Please sign in to comment.