Skip to content

Commit b1e1aa3

Browse files
committed
lint:fix
1 parent 84b5d51 commit b1e1aa3

36 files changed

+176
-134
lines changed

src/command-line-arguments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import yargs from 'yargs/yargs';
21
import { hideBin } from 'yargs/helpers';
2+
import yargs from 'yargs/yargs';
33

44
export type CommandLineArguments = {
55
projectDirectory: string;

src/editor.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { when } from 'jest-when';
2+
23
import { determineEditor } from './editor';
34
import * as envModule from './env';
45
import * as miscUtils from './misc-utils';

src/editor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export async function determineEditor(): Promise<Editor | null> {
3131
executablePath = await resolveExecutable(EDITOR);
3232
} catch (error) {
3333
debug(
34+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
3435
`Could not resolve executable ${EDITOR} (${error}), falling back to VSCode`,
3536
);
3637
}
@@ -43,6 +44,7 @@ export async function determineEditor(): Promise<Editor | null> {
4344
executableArgs.push('--wait');
4445
} catch (error) {
4546
debug(
47+
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
4648
`Could not resolve path to VSCode: ${error}, continuing regardless`,
4749
);
4850
}

src/fs.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import * as actionUtils from '@metamask/action-utils';
12
import fs from 'fs';
3+
import { when } from 'jest-when';
24
import path from 'path';
35
import { rimraf } from 'rimraf';
4-
import { when } from 'jest-when';
5-
import * as actionUtils from '@metamask/action-utils';
6-
import { withSandbox } from '../tests/helpers';
6+
77
import {
88
readFile,
99
writeFile,
@@ -13,6 +13,7 @@ import {
1313
ensureDirectoryPathExists,
1414
removeFile,
1515
} from './fs';
16+
import { withSandbox } from '../tests/helpers';
1617

1718
jest.mock('@metamask/action-utils');
1819

src/fs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import fs from 'fs';
21
import {
32
readJsonObjectFile as underlyingReadJsonObjectFile,
43
writeJsonFile as underlyingWriteJsonFile,
54
} from '@metamask/action-utils';
5+
import fs from 'fs';
6+
67
import { wrapError, isErrorWithCode } from './misc-utils';
78

89
/**

src/functional.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { withMonorepoProjectEnvironment } from '../tests/functional/helpers/with';
21
import { buildChangelog } from '../tests/functional/helpers/utils';
2+
import { withMonorepoProjectEnvironment } from '../tests/functional/helpers/with';
33

44
jest.setTimeout(10_000);
55

src/initial-parameters.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
import { when } from 'jest-when';
12
import os from 'os';
23
import path from 'path';
3-
import { when } from 'jest-when';
4+
5+
import * as commandLineArgumentsModule from './command-line-arguments';
6+
import * as envModule from './env';
7+
import { determineInitialParameters } from './initial-parameters';
8+
import * as projectModule from './project';
49
import {
510
buildMockProject,
611
buildMockPackage,
712
createNoopWriteStream,
813
} from '../tests/unit/helpers';
9-
import { determineInitialParameters } from './initial-parameters';
10-
import * as commandLineArgumentsModule from './command-line-arguments';
11-
import * as envModule from './env';
12-
import * as projectModule from './project';
1314

1415
jest.mock('./command-line-arguments');
1516
jest.mock('./env');

src/initial-parameters.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import os from 'os';
22
import path from 'path';
3+
34
import { readCommandLineArguments } from './command-line-arguments';
4-
import { WriteStreamLike } from './fs';
5-
import { readProject, Project } from './project';
5+
import type { WriteStreamLike } from './fs';
6+
import type { Project } from './project';
7+
import { readProject } from './project';
68

79
/**
810
* The type of release being created as determined by the parent release.

src/main.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import fs from 'fs';
2-
import { buildMockProject } from '../tests/unit/helpers';
3-
import { main } from './main';
2+
43
import * as initialParametersModule from './initial-parameters';
4+
import { main } from './main';
55
import * as monorepoWorkflowOperations from './monorepo-workflow-operations';
6+
import { buildMockProject } from '../tests/unit/helpers';
67

78
jest.mock('./initial-parameters');
89
jest.mock('./monorepo-workflow-operations');

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { WriteStream } from 'fs';
2+
23
import { determineInitialParameters } from './initial-parameters';
34
import { followMonorepoWorkflow } from './monorepo-workflow-operations';
45

0 commit comments

Comments
 (0)