Skip to content

Commit

Permalink
chore(deps-dev): bump @appium/eslint-config-appium-ts from 0.3.3 to 1…
Browse files Browse the repository at this point in the history
….0.1 (#261)
  • Loading branch information
dependabot[bot] authored Jan 3, 2025
1 parent 727e96b commit d5f22e9
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 41 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

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

export default [
...appiumConfig,
{
ignores: [
'docs/**',
],
},
];
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Simctl from './lib/simctl';
import { Simctl } from './lib/simctl';

export { Simctl };
export default Simctl;
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import semver from 'semver';
import * as semver from 'semver';

export const DEFAULT_EXEC_TIMEOUT = 10 * 60 * 1000; // ms
export const SIM_RUNTIME_NAME = 'com.apple.CoreSimulator.SimRuntime.';
Expand Down
2 changes: 1 addition & 1 deletion lib/simctl.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class Simctl {
if (!this.xcrun.path) {
try {
this.xcrun.path = await which(xcrunBinary);
} catch (e) {
} catch {
throw new Error(`${xcrunBinary} tool has not been found in PATH. ` +
`Are Xcode developers tools installed?`);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/subcommands/bootstatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ commands.startBootMonitor = async function startBootMonitor (opts = {}) {
}
return isBootingFinished;
}, {waitMs: timeout, intervalMs: 500});
} catch (err) {
} catch {
await stopMonitor();
const [seconds] = process.hrtime(start);
throw new Error(
Expand Down
6 changes: 3 additions & 3 deletions lib/subcommands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ commands.createDevice = async function createDevice (name, deviceTypeId, platfor
// Try getting runtimeId using JSON flag
try {
runtimeIds.push(await this.getRuntimeForPlatformVersionViaJson(platformVersion, platform));
} catch (ign) {}
} catch {}

if (_.isEmpty(runtimeIds)) {
// at first make sure that the runtime id is the right one
// in some versions of Xcode it will be a patch version
let runtimeId;
try {
runtimeId = await this.getRuntimeForPlatformVersion(platformVersion, platform);
} catch (err) {
} catch {
log.warn(`Unable to find runtime for iOS '${platformVersion}'. Continuing`);
runtimeId = platformVersion;
}
Expand Down Expand Up @@ -81,7 +81,7 @@ commands.createDevice = async function createDevice (name, deviceTypeId, platfor
});
udid = stdout.trim();
break;
} catch (ign) {
} catch {
// the error gets logged in `simExec`
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/subcommands/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVers
return match[2];
}
}
} catch (ign) {}
} catch {}

// if nothing was found, pass platform version back
return platformVersion;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"singleQuote": true
},
"devDependencies": {
"@appium/eslint-config-appium-ts": "^0.x",
"@appium/eslint-config-appium-ts": "^1.x",
"@appium/tsconfig": "^0.x",
"@appium/types": "^0.x",
"@semantic-release/changelog": "^6.0.1",
Expand Down
6 changes: 0 additions & 6 deletions test/.eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions test/e2e/simctl-e2e-specs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _ from 'lodash';
import Simctl from '../../lib/simctl.js';
import { Simctl } from '../../lib/simctl.js';
import xcode from 'appium-xcode';
import { retryInterval } from 'asyncbox';
import { rimraf } from 'rimraf';
Expand Down Expand Up @@ -159,7 +159,7 @@ describe('simctl', function () {
if (simctl.udid) {
try {
await simctl.shutdownDevice();
} catch (ign) {}
} catch {}
await simctl.deleteDevice();
simctl.udid = null;
}
Expand Down

0 comments on commit d5f22e9

Please sign in to comment.