Skip to content

Commit

Permalink
[prettier] fixing prettier error by updating gts
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed May 30, 2024
1 parent ada8157 commit c64f90e
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 210 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
...require('gts/.prettierrc.json'),
bracketSpacing: true,
semi: false
semi: false,
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/node": "^18.19.24",
"@types/bn.js": "^5.1.5",
"bigint-buffer": "^1.1.5",
"gts": "^5.2.0",
"gts": "^5.3.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
Expand Down
13 changes: 7 additions & 6 deletions packages/lib/cli-common/src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export function resolveSolanaConfig({
}
}

// eslint-disable-next-line no-use-before-define
export function parseClusterUrl(
url: string | undefined,
solanaConfigPath?: string
Expand All @@ -258,12 +259,12 @@ export function parseClusterUrl(
url === 'd'
? 'devnet'
: url === 't'
? 'testnet'
: url === 'm' || url === 'mainnet'
? 'mainnet-beta'
: url === 'l' || url === 'localnet' || url === 'localhost'
? localhost
: url
? 'testnet'
: url === 'm' || url === 'mainnet'
? 'mainnet-beta'
: url === 'l' || url === 'localnet' || url === 'localhost'
? localhost
: url

try {
clusterUrl = clusterApiUrl(clusterUrl as Cluster | undefined)
Expand Down
Loading

0 comments on commit c64f90e

Please sign in to comment.