Skip to content

Commit

Permalink
Revert "really not sure why these lint errors are suddenly appearing …
Browse files Browse the repository at this point in the history
…on this PR.."

This reverts commit d3b769e.
  • Loading branch information
dimitropoulos committed Oct 22, 2024
1 parent d3b769e commit de6b47f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/turbo-gen/src/utils/plop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function getPlop({
// add in all the workspace configs
workspaceConfigs.forEach((c) => {
try {
plop.load(c.config, {
plop?.load(c.config, {
destBasePath: c.root,
force: false,
});
Expand Down
3 changes: 2 additions & 1 deletion packages/turbo-utils/src/createProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ export async function createProject({
try {
if (!isDefaultExample && repoInfo) {
loader.start();
await retry(() => downloadAndExtractRepo(root, repoInfo), {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- this is type guarded above (wtf TS)
await retry(() => downloadAndExtractRepo(root, repoInfo!), {

Check failure on line 158 in packages/turbo-utils/src/createProject.ts

View workflow job for this annotation

GitHub Actions / Formatting

This assertion is unnecessary since it does not change the type of the expression
retries: 3,
});
} else {
Expand Down

0 comments on commit de6b47f

Please sign in to comment.