From 687b51dc87e4ceab8a6750ed18009be84422e2d5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Jul 2023 20:21:52 -0300 Subject: [PATCH] build(deps-dev): bump prettier from 2.8.8 to 3.0.0 (#484) * build(deps-dev): bump prettier from 2.8.8 to 3.0.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * Fix files format with Prettier v3 and remove .prettierignore which is no longer required --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Felipe Santos --- .prettierignore | 1 - index.js | 8 ++++---- lib/prepare.js | 2 +- lib/verify-auth.js | 4 ++-- lib/verify-ovsx-auth.js | 6 +++--- lib/verify-pkg.js | 8 ++++---- lib/verify-target.js | 4 ++-- package-lock.json | 18 +++++++++--------- package.json | 2 +- test/index.test.js | 6 +++--- 10 files changed, 29 insertions(+), 30 deletions(-) delete mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 996e8eed..00000000 --- a/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -.nyc_output diff --git a/index.js b/index.js index 970cfee6..7f3f5109 100644 --- a/index.js +++ b/index.js @@ -15,7 +15,7 @@ async function verifyConditions(pluginConfig, { logger, cwd }) { async function prepare( pluginConfig, - { nextRelease: { version }, logger, cwd } + { nextRelease: { version }, logger, cwd }, ) { if (!verified) { await verifyVsce(pluginConfig, { logger, cwd }); @@ -25,14 +25,14 @@ async function prepare( version, pluginConfig.packageVsix, logger, - cwd + cwd, ); prepared = true; } async function publish( pluginConfig, - { nextRelease: { version }, logger, cwd } + { nextRelease: { version }, logger, cwd }, ) { if (!verified) { await verifyVsce(pluginConfig, { logger, cwd }); @@ -45,7 +45,7 @@ async function publish( version, pluginConfig.packageVsix, logger, - cwd + cwd, ); } diff --git a/lib/prepare.js b/lib/prepare.js index 81238c03..cd9e8a2f 100644 --- a/lib/prepare.js +++ b/lib/prepare.js @@ -14,7 +14,7 @@ module.exports = async (version, packageVsix, logger, cwd) => { if (packageVsix || ovsxEnabled) { if (!packageVsix && ovsxEnabled) { logger.log( - 'Packaging to VSIX even though `packageVsix` is not set as publish to OpenVSX is enabled.' + 'Packaging to VSIX even though `packageVsix` is not set as publish to OpenVSX is enabled.', ); } diff --git a/lib/verify-auth.js b/lib/verify-auth.js index 4ef05faf..27298b38 100644 --- a/lib/verify-auth.js +++ b/lib/verify-auth.js @@ -9,7 +9,7 @@ module.exports = async (logger, cwd) => { if (!process.env.VSCE_PAT) { throw new SemanticReleaseError( 'No vsce personal access token specified (set the `VSCE_PAT` environment variable).', - 'ENOVSCEPAT' + 'ENOVSCEPAT', ); } @@ -18,7 +18,7 @@ module.exports = async (logger, cwd) => { } catch (e) { throw new SemanticReleaseError( `Invalid vsce personal access token. Additional information:\n\n${e}`, - 'EINVALIDVSCETOKEN' + 'EINVALIDVSCETOKEN', ); } }; diff --git a/lib/verify-ovsx-auth.js b/lib/verify-ovsx-auth.js index 2349cb72..7b5fe623 100644 --- a/lib/verify-ovsx-auth.js +++ b/lib/verify-ovsx-auth.js @@ -9,7 +9,7 @@ module.exports = async (logger, cwd) => { if (!isOvsxEnabled()) { logger.log( - 'Skipping verification of ovsx personal token because the `OVSX_PAT` environment variable is not set.\n\nDid you know you can easily start publishing to OpenVSX with `semantic-release-vsce`?\nLearn more at https://github.com/felipecrs/semantic-release-vsce#publishing-to-openvsx' + 'Skipping verification of ovsx personal token because the `OVSX_PAT` environment variable is not set.\n\nDid you know you can easily start publishing to OpenVSX with `semantic-release-vsce`?\nLearn more at https://github.com/felipecrs/semantic-release-vsce#publishing-to-openvsx', ); return; } @@ -17,7 +17,7 @@ module.exports = async (logger, cwd) => { if (!process.env.OVSX_PAT) { throw new SemanticReleaseError( 'Empty ovsx personal access token specified.', - 'EINVALIDOVSXPAT' + 'EINVALIDOVSXPAT', ); } @@ -26,7 +26,7 @@ module.exports = async (logger, cwd) => { } catch (e) { throw new SemanticReleaseError( `Invalid ovsx personal access token. Additional information:\n\n${e}`, - 'EINVALIDOVSXPAT' + 'EINVALIDOVSXPAT', ); } }; diff --git a/lib/verify-pkg.js b/lib/verify-pkg.js index db5db36a..ccbecbdc 100644 --- a/lib/verify-pkg.js +++ b/lib/verify-pkg.js @@ -8,7 +8,7 @@ module.exports = async () => { if (!fs.existsSync('./package.json')) { throw new SemanticReleaseError( 'The `package.json` was not found. A `package.json` is required to release with vsce.', - 'ENOPKG' + 'ENOPKG', ); } @@ -19,7 +19,7 @@ module.exports = async () => { } catch (error) { throw new SemanticReleaseError( 'The `package.json` seems to be invalid.', - 'EINVALIDPKG' + 'EINVALIDPKG', ); } @@ -28,13 +28,13 @@ module.exports = async () => { if (!name) { throw new SemanticReleaseError( 'No `name` found in `package.json`.', - 'ENOPKGNAME' + 'ENOPKGNAME', ); } if (!publisher) { throw new SemanticReleaseError( 'No `publisher` found in `package.json`.', - 'ENOPUBLISHER' + 'ENOPUBLISHER', ); } }; diff --git a/lib/verify-target.js b/lib/verify-target.js index fdc382a6..a29563f5 100644 --- a/lib/verify-target.js +++ b/lib/verify-target.js @@ -11,7 +11,7 @@ module.exports = async () => { if (!process.env.VSCE_TARGET) { throw new SemanticReleaseError( 'Empty vsce target specified.', - 'EINVALIDVSCETARGET' + 'EINVALIDVSCETARGET', ); } @@ -24,7 +24,7 @@ module.exports = async () => { `Unsupported vsce target: ${ process.env.VSCE_TARGET }. Available targets: ${Object.values(targets).join(', ')}`, - 'EUNSUPPORTEDVSCETARGET' + 'EUNSUPPORTEDVSCETARGET', ); } } diff --git a/package-lock.json b/package-lock.json index fdcf995f..34786883 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "husky": "^8.0.2", "lint-staged": "^13.0.3", "nyc": "^15.1.0", - "prettier": "2.8.8", + "prettier": "3.0.0", "proxyquire": "^2.1.3", "semantic-release": "^21.0.1", "sinon": "^15.0.0" @@ -10822,15 +10822,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.0.tgz", + "integrity": "sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -21092,9 +21092,9 @@ "dev": true }, "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.0.tgz", + "integrity": "sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==", "dev": true }, "pretty-ms": { diff --git a/package.json b/package.json index 538526f9..4cced30e 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "husky": "^8.0.2", "lint-staged": "^13.0.3", "nyc": "^15.1.0", - "prettier": "2.8.8", + "prettier": "3.0.0", "proxyquire": "^2.1.3", "semantic-release": "^21.0.1", "sinon": "^15.0.0" diff --git a/test/index.test.js b/test/index.test.js index b54ca58a..ca8dbf34 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -44,7 +44,7 @@ test('verifyConditions', async (t) => { verifyVsceStub.calledOnceWith(pluginConfig, { logger: semanticReleasePayload.logger, cwd: semanticReleasePayload.cwd, - }) + }), ); }); @@ -63,7 +63,7 @@ test('prepare and unverified', async (t) => { verifyVsceStub.calledOnceWith(pluginConfig, { logger: semanticReleasePayload.logger, cwd: semanticReleasePayload.cwd, - }) + }), ); t.deepEqual(vscePrepareStub.getCall(0).args, [ semanticReleasePayload.nextRelease.version, @@ -166,7 +166,7 @@ test('it does not publish the package if publishing is disabled', async (t) => { await verifyConditions( { ...pluginConfig, publish: false }, - semanticReleasePayload + semanticReleasePayload, ); await prepare({ ...pluginConfig, publish: false }, semanticReleasePayload); await publish({ ...pluginConfig, publish: false }, semanticReleasePayload);