Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add linting #239

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint Check
on: [push, pull_request, merge_group]
jobs:
test:
runs-on: ubuntu-latest
name: Lint Check
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install prettier
run: npm install -g prettier
- name: Check linting
run: prettier --check src/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ To request that we add a validator to the list,
[file an issue](https://github.com/berachain/default-lists/issues/new?assignees=&labels=validator+request&projects=&template=validator-request.md&title=Add+%7BVALIDATOR_NAME%7D).

## Contributing

- ℹ️ PLEASE ADD YOUR NEW ITEM TO THE TOP OF THE LIST TO AVOID JSON TRAILING COMMA ISSUE 🚀
- ℹ️ AFTER OPENING AN ISSUE, CREATE A BRANCH AND ADD YOUR CHANGES. WHEN READY, CREATE A PR AND LINK YOUR ISSUE IN THE PR 🚀
- ℹ️ PLEASE RUN `pnpm lint`BEFORE YOU PUSH 🚀

### Disclaimer

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "mocha",
"build": "rimraf build && mkdir -p build",
"prepublishOnly": "npm test && npm run build"
"prepublishOnly": "npm test && npm run build",
"lint": "prettier --write src/"
},
"files": [
"build/berachain-default.tokenlist.json"
Expand Down Expand Up @@ -34,5 +35,8 @@
"chai": "^4.2.0",
"mocha": "^8.0.1",
"rimraf": "^3.0.2"
},
"dependencies": {
"prettier": "^3.3.1"
}
}
5 changes: 3 additions & 2 deletions src/tokens/bartio/defaultTokenList.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"deposit": {
"name": "Deposit Token",
"description": "Tokens that can be deposited in Bend"
},
},
"rewardToken": {
"name": "Reward Token",
"description": "Tokens that are used for vault deposits to earn BGT rewards"
Expand Down Expand Up @@ -118,7 +118,8 @@
"decimals": 18,
"logoURI": "https://artio-static-asset-public.s3.ap-southeast-1.amazonaws.com/assets/honey.png",
"tags": ["supply"]
},{
},
{
"chainId": 80084,
"address": "0x8Ce5C1c42CD58B7aE61512790e514a82d84375Ed",
"symbol": "aWETH",
Expand Down
42 changes: 21 additions & 21 deletions src/validators/bartio/defaultValidatorList.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"twitter": "https://x.com/allnodes"
},
{
"id": "0xA7B927Cc85bFB997765aC86a86e46d36413e9B57",
"logoURI": "https://res.cloudinary.com/duv0g402y/raw/upload/src/assets/nodemeister.png",
"name": "nodemeister",
"description": "freedom through decentralization",
"website": "",
"twitter": "https://x.com/nodemeister"
"id": "0xA7B927Cc85bFB997765aC86a86e46d36413e9B57",
"logoURI": "https://res.cloudinary.com/duv0g402y/raw/upload/src/assets/nodemeister.png",
"name": "nodemeister",
"description": "freedom through decentralization",
"website": "",
"twitter": "https://x.com/nodemeister"
},
{
"id": "0x3Ab20D8fC60bDEddC1195C82eFD971024E7f90f4",
Expand Down Expand Up @@ -256,7 +256,7 @@
"description": "Staking and relaying Hub for Cosmos ecosystem",
"website": "https://www.stakelab.zone",
"twitter": "https://x.com/StakeLab"
},
},
{
"id": "0x4AfB6199d1A92D1236cAa74b8dFE99F1EA3A8fF2",
"logoURI": "https://raw.githubusercontent.com/StakeUs/Stakeus_LOGO/main/logo-no-background.png",
Expand All @@ -272,7 +272,7 @@
"description": "OriginStake is a trusted Proof-of-Stake infrastructure provider and validator to comfortably stake your coins and earn rewards with Berachain.",
"website": "https://originstake.com",
"twitter": "https://x.com/originstake"
},
},
{
"id": "0x73B969ADE706e89469134f3b78b4E74FC16477bE",
"logoURI": "https://raw.githubusercontent.com/blacknodes/logos/main/logo-no-background.png",
Expand Down Expand Up @@ -463,7 +463,7 @@
"description": "Trusted infrastructure and validator service provider for over 50 networks. Dedicated to delivering reliable and secure solutions. ",
"website": "https://stakingcabin.com",
"twitter": "https://twitter.com/StakingCabin"
},
},
{
"id": "0x1Cc335D9c67a71C777282fdb28b0a2d5eBf42AF4",
"logoURI": "https://res.cloudinary.com/duv0g402y/raw/upload/src/assets/flipside.png",
Expand Down Expand Up @@ -497,12 +497,12 @@
"twitter": "https://x.com/Provalidator"
},
{
"id": "0x462f0560e473e1545Fd4d0680C02c499aaf01711",
"logoURI": "https://i0.wp.com/h2o-nodes.com/wp-content/uploads/2022/05/H2O-Nodes-logo-A1-4095064980-1653758705955.jpg",
"name": "H2O Nodes",
"description": "On Prem Validators from Austria",
"website": "https://www.h2o-nodes.com",
"twitter": "https://www.twitter.com/H2oNodes"
"id": "0x462f0560e473e1545Fd4d0680C02c499aaf01711",
"logoURI": "https://i0.wp.com/h2o-nodes.com/wp-content/uploads/2022/05/H2O-Nodes-logo-A1-4095064980-1653758705955.jpg",
"name": "H2O Nodes",
"description": "On Prem Validators from Austria",
"website": "https://www.h2o-nodes.com",
"twitter": "https://www.twitter.com/H2oNodes"
},
{
"id": "0x201c74de018aa34214BEEFFaF717e1d5F36261a7",
Expand All @@ -521,12 +521,12 @@
"twitter": "https://twitter.com/brightlystake"
},
{
"id": "0x1ab189B7801140900C711E458212F9c76F8dAC79",
"logoURI": "https://raw.githubusercontent.com/Frixoe/lgnsmeta/main/lugahils.jpeg",
"name": "Luganodes",
"description": "Swiss-Operated Institutional Grade Staking Provider",
"website": "https://luganodes.com",
"twitter": "https://x.com/luganodes"
"id": "0x1ab189B7801140900C711E458212F9c76F8dAC79",
"logoURI": "https://raw.githubusercontent.com/Frixoe/lgnsmeta/main/lugahils.jpeg",
"name": "Luganodes",
"description": "Swiss-Operated Institutional Grade Staking Provider",
"website": "https://luganodes.com",
"twitter": "https://x.com/luganodes"
},
{
"id": "0x2C8D3b794c5FC05Fe6A91AD4C4F3a66620ff9aa5",
Expand Down
4 changes: 2 additions & 2 deletions src/write.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const buildList = require('./buildList');
const buildList = require("./buildList");

buildList().then(data => console.log(JSON.stringify(data, null, 2)));
buildList().then((data) => console.log(JSON.stringify(data, null, 2)));
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2505,6 +2505,11 @@ prettier@^3.0.1:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==

prettier@^3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.1.tgz#e68935518dd90bb7ec4821ba970e68f8de16e1ac"
integrity sha512-7CAwy5dRsxs8PHXT3twixW9/OEll8MLE0VRPCJyl7CkS6VHGPSlsVaWTiASPTyGyYRyApxlaWTzwUxVNrhcwDg==

process@^0.11.10:
version "0.11.10"
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
Expand Down
Loading