Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Jun 4, 2024
1 parent 2f77240 commit 970d730
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"jest"
],
"rules": {
"@typescript-eslint/prefer-nullish-coalescing": "off"
"@typescript-eslint/prefer-nullish-coalescing": "off",
"unicorn/prevent-abbreviations": "off"
}
},
"engines": {
Expand Down
11 changes: 4 additions & 7 deletions packages/cli/src/commands/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,10 @@ export async function serve(options: ServeOptions = {}) {
}

const codespace = process.env.CODESPACE_NAME;
let url;

if (host === 'localhost' && codespace) {
url = `https://${codespace}-${port}.app.github.dev${startPath}`;
} else {
url = `http://${host}:${port}${startPath}`;
}
const url =
host === 'localhost' && codespace
? `https://${codespace}-${port}.app.github.dev${startPath}`
: `http://${host}:${port}${startPath}`;

console.info(`Preview workshop at ${url}`);
console.info(`Watching for changes...`);
Expand Down

0 comments on commit 970d730

Please sign in to comment.