Skip to content

Commit 5ee7109

Browse files
moar
1 parent f90f4e0 commit 5ee7109

10 files changed

Lines changed: 24 additions & 71 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: 6 additions & 11 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",
@@ -93,11 +93,10 @@
9393
},
9494
"devDependencies": {
9595
"@appium/docutils": "^2.4.0",
96-
"@appium/eslint-config-appium-ts": "^3.0.0",
96+
"@appium/oxc-config": "^1.1.0",
97+
"@appium/semantic-release-config": "^1.1.0",
9798
"@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)