Skip to content

Commit

Permalink
[prettier] use auto for end of line
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed May 30, 2024
1 parent ada8157 commit 55b7e15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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,
}
3 changes: 3 additions & 0 deletions packages/lib/cli-common/src/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,12 @@ export function resolveSolanaConfig({
}
}

// eslint-disable-next-line no-use-before-define
export function parseClusterUrl(
url: string | undefined,
solanaConfigPath?: string
): string {
/* eslint-disable no-use-before-define */
const localhost = 'http://127.0.0.1:8899'
let clusterUrl =
url === 'd'
Expand All @@ -264,6 +266,7 @@ export function parseClusterUrl(
: url === 'l' || url === 'localnet' || url === 'localhost'

Check failure on line 266 in packages/lib/cli-common/src/parsers.ts

View workflow job for this annotation

GitHub Actions / build (16)

Insert `····`
? localhost

Check failure on line 267 in packages/lib/cli-common/src/parsers.ts

View workflow job for this annotation

GitHub Actions / build (16)

Insert `······`
: url

Check failure on line 268 in packages/lib/cli-common/src/parsers.ts

View workflow job for this annotation

GitHub Actions / build (16)

Insert `······`
/* eslint-enable no-use-before-define */

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

0 comments on commit 55b7e15

Please sign in to comment.