Skip to content

Commit 6711a34

Browse files
chore: Integrate oxc and release configs (#2925)
1 parent 553d4c1 commit 6711a34

10 files changed

Lines changed: 32 additions & 79 deletions

File tree

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ jobs:
3939
- run: npm run lint
4040
name: Run linter
4141
- run: npm run format:check
42-
name: Run Prettier check
42+
name: Run format check
4343
- run: npm run test
4444
name: Unit Tests

.oxfmtrc.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.releaserc

Lines changed: 0 additions & 37 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 0 additions & 8 deletions
This file was deleted.

lib/commands/keyboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {KeyboardKey} from './types.js';
88
*/
99
export async function hideKeyboard(
1010
this: XCUITestDriver,
11-
strategy?: string,
11+
_strategy?: string,
1212
...possibleKeys: string[]
1313
): Promise<boolean> {
1414
// last parameter is the session id

oxfmt.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import appiumConfig, {defineConfig, ignorePatterns} from '@appium/oxc-config/oxfmt';
2+
3+
export default defineConfig({
4+
...appiumConfig,
5+
ignorePatterns: [...ignorePatterns, 'docs/**'],
6+
});

oxlint.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import appiumConfig, {defineConfig, ignorePatterns} from '@appium/oxc-config/oxlint';
2+
3+
export default defineConfig({
4+
extends: [appiumConfig],
5+
ignorePatterns: [...ignorePatterns, 'docs/**'],
6+
});

package.json

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
"build:docs": "appium-docs build",
4949
"dev:docs": "appium-docs build --serve",
5050
"publish:docs": "appium-docs build --deploy --push -b docs-site -m 'docs: auto-build docs for appium-xcuitest-driver@%s' --alias latest",
51-
"lint": "eslint .",
51+
"lint": "oxlint -c oxlint.config.mjs .",
5252
"lint:commit": "commitlint",
53-
"lint:fix": "npm run lint -- --fix",
54-
"format": "oxfmt .",
55-
"format:check": "oxfmt --check .",
53+
"lint:fix": "oxlint -c oxlint.config.mjs --fix .",
54+
"format": "oxfmt -c oxfmt.config.mjs .",
55+
"format:check": "oxfmt -c oxfmt.config.mjs --check .",
5656
"install-docs-deps": "appium-docs init --no-mkdocs",
5757
"prepare": "npm run rebuild",
5858
"rebuild": "npm run clean; npm run build",
@@ -72,19 +72,19 @@
7272
"@appium/strongbox": "^1.0.0-rc.1",
7373
"@colors/colors": "^1.6.0",
7474
"appium-ios-device": "^3.1.12",
75-
"appium-ios-simulator": "^8.2.0",
76-
"appium-remote-debugger": "^15.7.3",
77-
"appium-webdriveragent": "^15.1.6",
78-
"appium-xcode": "^6.0.2",
75+
"appium-ios-simulator": "^9.0.0",
76+
"appium-remote-debugger": "^16.0.0",
77+
"appium-webdriveragent": "^16.0.0",
78+
"appium-xcode": "^7.0.0",
7979
"async-lock": "^1.4.0",
8080
"asyncbox": "^6.3.0",
81-
"axios": "^1.4.0",
81+
"axios": "^1.18.0",
8282
"commander": "^14.0.1",
8383
"dayjs": "^1.11.21",
8484
"js2xmlparser2": "^0.x",
8585
"lru-cache": "^11.1.0",
86-
"node-devicectl": "^1.1.0",
87-
"node-simctl": "^8.1.1",
86+
"node-devicectl": "^2.0.0",
87+
"node-simctl": "^9.0.0",
8888
"portscanner": "^2.2.0",
8989
"semver": "^7.5.4",
9090
"teen_process": "^4.0.4",
@@ -93,11 +93,10 @@
9393
},
9494
"devDependencies": {
9595
"@appium/docutils": "^2.4.0",
96-
"@appium/eslint-config-appium-ts": "^3.0.0",
97-
"@appium/tsconfig": "^1.0.0-rc.1",
96+
"@appium/oxc-config": "^1.1.0",
97+
"@appium/semantic-release-config": "^1.1.0",
98+
"@appium/tsconfig": "^1.2.0",
9899
"@appium/types": "^1.5.0",
99-
"@semantic-release/changelog": "^6.0.3",
100-
"@semantic-release/git": "^10.0.1",
101100
"@types/async-lock": "1.4.2",
102101
"@types/chai": "5.2.3",
103102
"@types/chai-as-promised": "8.0.2",
@@ -108,14 +107,10 @@
108107
"@types/sinon": "22.0.0",
109108
"chai": "^6.0.0",
110109
"chai-as-promised": "^8.0.0",
111-
"conventional-changelog-conventionalcommits": "^9.3.1",
112110
"esmock": "^2.7.6",
113-
"oxfmt": "^0.x",
114111
"pem": "^1.14.8",
115-
"semantic-release": "^25.0.2",
116112
"sharp": "^0.x",
117113
"sinon": "^22.0.0",
118-
"typescript": "^6.0.2",
119114
"webdriverio": "^9.4.1"
120115
},
121116
"peerDependencies": {

release.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import releaseConfig from '@appium/semantic-release-config';
2+
3+
export default releaseConfig();

scripts/tunnel-creation.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ async function main() {
949949
}
950950
} catch (error) {
951951
throw new Error(`Tunnel registry port cannot be persisted: ${/** @type {Error} */ (error).message}`, {
952-
cause: /** @type {Error} */ (error),
952+
cause: error,
953953
});
954954
}
955955

0 commit comments

Comments
 (0)