From cb7e7fe8517ca27c6f663b068c4705c5fa68c008 Mon Sep 17 00:00:00 2001 From: Verin1005 Date: Wed, 5 Jun 2024 19:00:25 +0800 Subject: [PATCH] add prettier --- .github/workflows/ci.yml | 2 ++ package-lock.json | 28 ++++++++++++++++++++++------ package.json | 1 + 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9da84d8..e395bdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,8 @@ jobs: fmt: runs-on: ubuntu-latest + needs: + - set-node steps: - uses: actions/checkout@v4 diff --git a/package-lock.json b/package-lock.json index 1e7f041..6ee9062 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "@nomicfoundation/hardhat-toolbox": "^5.0.0", "@openzeppelin/contracts": "^4.9.0", "hardhat": "^2.22.5", + "prettier": "^3.3.1", "prettier-plugin-solidity": "^1.3.1" } }, @@ -5604,16 +5605,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.3.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.1.tgz", + "integrity": "sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==", "dev": true, - "peer": 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" @@ -7034,6 +7034,22 @@ "node": ">=10" } }, + "node_modules/typechain/node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "peer": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/typechain/node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", diff --git a/package.json b/package.json index cd4f0c0..f9318cd 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@nomicfoundation/hardhat-toolbox": "^5.0.0", "@openzeppelin/contracts": "^4.9.0", "hardhat": "^2.22.5", + "prettier": "^3.3.1", "prettier-plugin-solidity": "^1.3.1" }, "packageManager": "npm@10.5.0"