Skip to content

Commit

Permalink
chore(linting): fix import-x issues
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Sep 8, 2024
1 parent 45f6270 commit 8876f0f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export default [
...globals.es2021,
},
parserOptions: {
...importX.configs.recommended.parserOptions,
...importX.flatConfigs.recommended.parserOptions,
},
},
plugins: {
'import-x': importX,
},
rules: {
...eslint.configs.recommended.rules,
...importX.configs.recommended.rules,
...importX.flatConfigs.recommended.rules,
'import-x/no-named-as-default': 'off',
'import-x/no-unresolved': 'off',
},
Expand All @@ -51,7 +51,7 @@ export default [
},
},
settings: {
...importX.configs.electron.settings,
...importX.flatConfigs.electron.settings,
},
},
// Electron renderer process files
Expand All @@ -63,7 +63,7 @@ export default [
},
},
settings: {
...importX.configs.electron.settings,
...importX.flatConfigs.electron.settings,
},
},
// TS files
Expand All @@ -87,7 +87,7 @@ export default [
rules: {
...ts.configs['eslint-recommended'].rules,
...ts.configs.recommended.rules,
...importX.configs.typescript.rules,
...importX.flatConfigs.typescript.rules,
'no-undef': 'off', // redundant - TS will fail to compile with undefined vars
'no-redeclare': 'off', // redundant - TS will fail to compile with duplicate declarations
'@typescript-eslint/no-empty-interface': [
Expand Down
2 changes: 1 addition & 1 deletion packages/@wdio_electron-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { NormalizedReadResult } from 'read-package-up';

import log from './log.js';
import { APP_NAME_DETECTION_ERROR, BUILD_TOOL_DETECTION_ERROR } from './constants.js';
import {
import type {
AppBuildInfo,
BuilderArch,
BuilderConfig,
Expand Down
1 change: 0 additions & 1 deletion packages/wdio-electron-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ export default ElectronWorkerService;

export const browser: WebdriverIO.Browser = wdioBrowser;
export const startElectron: (opts: ElectronServiceOptions) => Promise<WebdriverIO.Browser> = initSession;
export * from '@wdio/electron-types';
2 changes: 1 addition & 1 deletion packages/wdio-electron-service/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Capabilities, Services } from '@wdio/types';
import type { AbstractFn, BrowserExtension, ElectronServiceOptions, ExecuteOpts } from '@wdio/electron-types';

import log from '@wdio/electron-utils/log';
import mockStore from './mockStore.js';
Expand All @@ -10,7 +11,6 @@ import { isMockFunction } from './commands/isMockFunction.js';
import { resetAllMocks } from './commands/resetAllMocks.js';
import { restoreAllMocks } from './commands/restoreAllMocks.js';
import { mockAll } from './commands/mockAll.js';
import type { AbstractFn, BrowserExtension, ElectronServiceOptions, ExecuteOpts } from './index.js';

const waitUntilWindowAvailable = async (browser: WebdriverIO.Browser) =>
await browser.waitUntil(async () => {
Expand Down

0 comments on commit 8876f0f

Please sign in to comment.