From 85d9bdb2c75d518b4c0287c0ad3781cc9f7b7039 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 15 Jul 2023 16:19:12 +0900 Subject: [PATCH] Update dependency prettier to v3 (#657) --- package.json | 2 +- src/run.ts | 4 ++-- tests/run.test.ts | 40 ++++++++++++++++++++-------------------- yarn.lock | 8 ++++---- 4 files changed, 27 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 3b4e77bc..4b2414fe 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "eslint-plugin-jest": "27.2.3", "jest": "29.6.1", "js-yaml": "4.1.0", - "prettier": "2.8.8", + "prettier": "3.0.0", "ts-jest": "29.1.1", "typescript": "5.1.6" } diff --git a/src/run.ts b/src/run.ts index f6fe9dfe..8ae4bd68 100644 --- a/src/run.ts +++ b/src/run.ts @@ -53,8 +53,8 @@ export const run = async (inputs: Inputs): Promise => { contains: inputs.contains, }, undefined, - 2 - )}` + 2, + )}`, ) const filteredComments = filterComments(q, inputs) for (const c of filteredComments) { diff --git a/tests/run.test.ts b/tests/run.test.ts index e2314d7f..f2dfd3e0 100644 --- a/tests/run.test.ts +++ b/tests/run.test.ts @@ -16,8 +16,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [], token: `token`, - } - ) + }, + ), ).toBeFalsy() }) @@ -37,8 +37,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [], token: `token`, - } - ) + }, + ), ).toBeFalsy() }) @@ -58,8 +58,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [], token: `token`, - } - ) + }, + ), ).toBeTruthy() }) test('authors filter did not match', () => { @@ -78,8 +78,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [], token: `token`, - } - ) + }, + ), ).toBeFalsy() }) @@ -98,8 +98,8 @@ describe('filter to minimize', () => { startsWith: [''], contains: [], token: `token`, - } - ) + }, + ), ).toBeTruthy() }) test('starts-with filter did not match', () => { @@ -117,8 +117,8 @@ describe('filter to minimize', () => { startsWith: [''], contains: [], token: `token`, - } - ) + }, + ), ).toBeFalsy() }) @@ -137,8 +137,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [], token: `token`, - } - ) + }, + ), ).toBeTruthy() }) test('ends-with filter did not match', () => { @@ -156,8 +156,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [], token: `token`, - } - ) + }, + ), ).toBeFalsy() }) @@ -176,8 +176,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [''], token: `token`, - } - ) + }, + ), ).toBeTruthy() }) test('contains filter did not match', () => { @@ -195,8 +195,8 @@ describe('filter to minimize', () => { startsWith: [], contains: [''], token: `token`, - } - ) + }, + ), ).toBeFalsy() }) }) diff --git a/yarn.lock b/yarn.lock index 3ffb5dc2..b5641b83 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5206,10 +5206,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@2.8.8: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae" + integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g== pretty-format@^29.0.0, pretty-format@^29.0.1: version "29.0.1"