Skip to content

Commit 2179cc7

Browse files
committed
🚨 pnpm lint:fix
1 parent e9502d0 commit 2179cc7

File tree

7 files changed

+28
-20
lines changed

7 files changed

+28
-20
lines changed

‎src/version3/issueComments.ts

+12-13
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,18 @@ export class IssueComments {
145145
*/
146146
async addComment<T = Models.Comment>(parameters: Parameters.AddComment, callback?: never): Promise<T>;
147147
async addComment<T = Models.Comment>(parameters: Parameters.AddComment, callback?: Callback<T>): Promise<void | T> {
148-
const body =
149-
typeof parameters.comment === 'string'
150-
? {
151-
type: 'doc',
152-
version: 1,
153-
content: [
154-
{
155-
type: 'paragraph',
156-
content: [{ type: 'text', text: parameters.comment }],
157-
},
158-
],
159-
}
160-
: parameters.comment;
148+
const body = typeof parameters.comment === 'string'
149+
? {
150+
type: 'doc',
151+
version: 1,
152+
content: [
153+
{
154+
type: 'paragraph',
155+
content: [{ type: 'text', text: parameters.comment }],
156+
},
157+
],
158+
}
159+
: parameters.comment;
161160

162161
const config: RequestConfig = {
163162
url: `/rest/api/3/issue/${parameters.issueIdOrKey}/comment`,

‎src/version3/parameters/createIssue.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import type { Document, IssueUpdateDetails, Project, TimeTrackingDetails } from '../models/index.js';
1+
import type {
2+
Document, IssueUpdateDetails, Project, TimeTrackingDetails,
3+
} from '../models/index.js';
24

35
export interface CreateIssue extends Omit<IssueUpdateDetails, 'fields'> {
46
/**

‎tests/integration/agile/sprint.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { afterAll, beforeAll, test } from 'vitest';
22
import { AgileModels } from '../../../src/index.js';
33
import { Constants } from '../constants.js';
4-
import { createAgileProject, deleteAgileProject, getAgileClient, getVersion3Client } from '../utils/index.js';
4+
import {
5+
createAgileProject, deleteAgileProject, getAgileClient, getVersion3Client,
6+
} from '../utils/index.js';
57

68
const client = getAgileClient();
79

‎tests/integration/version2/issueVotes.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { afterAll, beforeAll, test } from 'vitest';
22
import type { CreatedIssue } from '../../../src/version2/models/index.js';
3-
import { cleanupEnvironment, createIssue, getVersion2Client, prepareEnvironment } from '../utils/index.js';
3+
import {
4+
cleanupEnvironment, createIssue, getVersion2Client, prepareEnvironment,
5+
} from '../utils/index.js';
46

57
const client = getVersion2Client();
68
let createdIssue: CreatedIssue;

‎tests/integration/version3/issueVotes.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { afterAll, beforeAll, test } from 'vitest';
22
import type { CreatedIssue } from '../../../src/version3/models/index.js';
3-
import { cleanupEnvironment, createIssue, getVersion3Client, prepareEnvironment } from '../utils/index.js';
3+
import {
4+
cleanupEnvironment, createIssue, getVersion3Client, prepareEnvironment,
5+
} from '../utils/index.js';
46

57
const client = getVersion3Client();
68
let createdIssue: CreatedIssue;

‎tests/unit/clients/baseClient.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ test("shouldn't display error message for correct host urls", ({ expect }) => {
8181
});
8282

8383
test('should display error message for incorrect host url', ({ expect }) => {
84-
const errorMessage =
85-
"Couldn't parse the host URL. Perhaps you forgot to add 'http://' or 'https://' at the beginning of the URL?";
84+
const errorMessage = "Couldn't parse the host URL. Perhaps you forgot to add 'http://' or 'https://' at the beginning of the URL?";
8685

8786
expect(() => new BaseClient({ host: '' })).toThrowError(errorMessage);
8887
expect(() => new BaseClient({ host: 'localhost' })).toThrowError(errorMessage);

‎tests/unit/createClient.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { test } from 'vitest';
2-
import { AgileClient, BaseClient, ClientType, createClient, Version2Client, Version3Client } from '../../src/index.js';
2+
import {
3+
AgileClient, BaseClient, ClientType, createClient, Version2Client, Version3Client,
4+
} from '../../src/index.js';
35

46
const defaultConfig = { host: 'http://localhost' };
57

0 commit comments

Comments
 (0)