From 9d4177e12179ccfd8b10bbc1713b160671213bb7 Mon Sep 17 00:00:00 2001 From: aboudjem Date: Tue, 12 Sep 2023 18:22:10 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20lint=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 14 +++++++++----- .github/ISSUE_TEMPLATE/feature_request.md | 7 ++++++- .github/pull_request_template.md | 4 +++- .github/workflows/mark_stale.yml | 2 +- .github/workflows/push_check.yml | 4 ++-- LICENSE.md | 2 +- README.md | 4 ++-- package.json | 2 +- packages/particle-auth/README.md | 18 +++++++++--------- packages/web3-auth/README.md | 2 +- tsconfig.eslint.json | 9 +++------ 12 files changed, 39 insertions(+), 31 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index a85bda168..e085ee07b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { parserOptions: { ecmaVersion: 2020, sourceType: "module", - project: './tsconfig.eslint.json', + project: "./tsconfig.eslint.json", }, env: { node: true, diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index eb300d9f0..77e5cc62b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -3,22 +3,25 @@ ## Description + ## Steps to Reproduce -1. -2. -3. - +1. +2. +3. ## Expected Behavior + ## Actual Behavior + ## Possible Fix (optional) + ## Environment Details @@ -28,4 +31,5 @@ - **NPM/Yarn Version**: ## Additional Context - \ No newline at end of file + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 081373b2c..3e93355fb 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -3,20 +3,25 @@ name: Feature Request about: Propose an enhancement or new feature to improve the project title: "Feature: " labels: feature-request, needs-review -assignees: '' +assignees: "" --- **Problem You're Facing** + **Proposed Solution** + **Alternatives Considered** + ## Use Cases + **Additional Info** + diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index a50eb1130..9b66596c9 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -26,8 +26,10 @@ Related Issue: # (issue number) - [ ] Any dependent changes have been merged and published # Additional Information + # Branch Naming + - \ No newline at end of file + diff --git a/.github/workflows/mark_stale.yml b/.github/workflows/mark_stale.yml index 9e3943c78..1864296c5 100644 --- a/.github/workflows/mark_stale.yml +++ b/.github/workflows/mark_stale.yml @@ -2,7 +2,7 @@ name: Mark Inactive Issues and PRs on: schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" jobs: stale: diff --git a/.github/workflows/push_check.yml b/.github/workflows/push_check.yml index 2e279bb11..6f63af53e 100644 --- a/.github/workflows/push_check.yml +++ b/.github/workflows/push_check.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout - uses: 'actions/checkout@master' + uses: "actions/checkout@master" - name: Set Node.js uses: actions/setup-node@v1 @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout - uses: 'actions/checkout@master' + uses: "actions/checkout@master" - name: Set Node.js uses: actions/setup-node@v1 diff --git a/LICENSE.md b/LICENSE.md index 7aa9585dc..cf907e971 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/README.md b/README.md index de8e7e5b8..cafdc1eb2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Unlock the full potential of **ERC4337 Account Abstraction** with methods that s ```javascript const biconomyAccount = new BiconomySmartAccount(biconomySmartAccountConfig); -const biconomySmartAccount = await biconomyAccount.init(); +const biconomySmartAccount = await biconomyAccount.init(); console.log("owner: ", biconomySmartAccount.owner); console.log("address: ", biconomySmartAccount.address); ``` @@ -68,4 +68,4 @@ Community contributions are welcome! For guidelines on contributing, please read ## 📜 License -This project is licensed under the MIT License. See the [LICENSE.md](./LICENSE.md) file for details. \ No newline at end of file +This project is licensed under the MIT License. See the [LICENSE.md](./LICENSE.md) file for details. diff --git a/package.json b/package.json index e91f69d05..cd93ee03d 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "build": "lerna run build", "clean": "lerna clean && lerna run unbuild", "format": "lerna run format --npm-client=yarn", - "prettier": "lerna run prettier --npm-client=yarn", + "prettier": "npx prettier --write .", "lint": "eslint -c .eslintrc.js 'packages/*/src/**/*.{ts,tsx}'", "lint:fix": "eslint -c .eslintrc.js 'packages/*/src/**/*.{ts,tsx}' --fix", "test": "yarn jest --runInBand", diff --git a/packages/particle-auth/README.md b/packages/particle-auth/README.md index f2cf214fd..fabfcc5dc 100644 --- a/packages/particle-auth/README.md +++ b/packages/particle-auth/README.md @@ -5,15 +5,15 @@ ## Usage ```ts -import { ParticleNetwork, WalletEntryPosition } from '@particle-network/auth'; -import { ParticleProvider } from '@particle-network/provider'; -import Web3 from 'web3'; +import { ParticleNetwork, WalletEntryPosition } from "@particle-network/auth"; +import { ParticleProvider } from "@particle-network/provider"; +import Web3 from "web3"; const particle = new ParticleNetwork({ - projectId: 'xx', - clientKey: 'xx', - appId: 'xx', - chainName: 'Ethereum', //optional: current chain name, default Ethereum. + projectId: "xx", + clientKey: "xx", + appId: "xx", + chainName: "Ethereum", //optional: current chain name, default Ethereum. chainId: 1, //optional: current chain id, default 1. wallet: { //optional: by default, the wallet entry is displayed in the bottom right corner of the webpage. @@ -35,7 +35,7 @@ window.web3 = new Web3(particleProvider); window.web3.currentProvider.isParticleNetwork; // => true //if you use ethers.js -import { ethers } from 'ethers'; -const ethersProvider = new ethers.providers.Web3Provider(particleProvider, 'any'); +import { ethers } from "ethers"; +const ethersProvider = new ethers.providers.Web3Provider(particleProvider, "any"); const ethersSigner = ethersProvider.getSigner(); ``` diff --git a/packages/web3-auth/README.md b/packages/web3-auth/README.md index 5ef27dc7f..1ed6c771a 100644 --- a/packages/web3-auth/README.md +++ b/packages/web3-auth/README.md @@ -5,7 +5,7 @@ ## Usage ```ts -import SocialLogin from '@biconomy/web3-auth'; +import SocialLogin from "@biconomy/web3-auth"; // init wallet const socialLoginSDK = new SocialLogin(); await socialLoginSDK.init(); diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index 92546355a..e4b76f44d 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -1,7 +1,4 @@ { - "extends": "./tsconfig.json", - "include": [ - "packages/**/*" - ] - } - \ No newline at end of file + "extends": "./tsconfig.json", + "include": ["packages/**/*"] +}