Skip to content

Commit

Permalink
Update lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Aug 23, 2023
1 parent 322f501 commit d3388a8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
}
},
{
"files": "Scripts/**/*",
"files": "Scripts/**/*.js",
"parserOptions": {"sourceType": "script"},
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": "ci-jobs/scripts/*.js",
"parserOptions": {"sourceType": "script"},
"rules": {
"@typescript-eslint/no-var-requires": "off"
Expand Down
3 changes: 1 addition & 2 deletions lib/check-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ async function checkForDependencies () {
return false;
}

async function bundleWDASim (xcodebuild, opts = {}) {
async function bundleWDASim (xcodebuild) {
if (xcodebuild && !_.isFunction(xcodebuild.retrieveDerivedDataPath)) {
xcodebuild = new XcodeBuild('', {});
opts = xcodebuild;
}

const derivedDataPath = await xcodebuild.retrieveDerivedDataPath();
Expand Down
4 changes: 2 additions & 2 deletions lib/xcodebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ class XcodeBuild {
logFile.on('line', (line) => {
xcodeLog.error(line);
});
await new B((resolve) => {
await new B((_resolve) => {
logFile.once('close', () => {
logFile.removeAllListeners();
resolve();
_resolve();
});
});
} catch (err) {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"devDependencies": {
"@appium/eslint-config-appium": "^8.0.4",
"@appium/eslint-config-appium-ts": "^0.3.1",
"@appium/test-support": "^3.0.0",
"@appium/tsconfig": "^0.3.0",
"@appium/types": "^0.13.2",
"@semantic-release/changelog": "^6.0.1",
Expand Down

0 comments on commit d3388a8

Please sign in to comment.