Skip to content

Commit 144a179

Browse files
fix(web): lint errors
1 parent 17187ef commit 144a179

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

apps/cli/src/helpers/core/template-manager.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,9 +1095,10 @@ export async function setupDeploymentTemplates(
10951095
) {
10961096
if (await fs.pathExists(alchemyTemplateSrc)) {
10971097
const webAppDir = path.join(projectDir, "apps/web");
1098-
const destDir = isBackendSelf && (await fs.pathExists(webAppDir))
1099-
? webAppDir
1100-
: projectDir;
1098+
const destDir =
1099+
isBackendSelf && (await fs.pathExists(webAppDir))
1100+
? webAppDir
1101+
: projectDir;
11011102
await processAndCopyFiles(
11021103
"alchemy.run.ts.hbs",
11031104
alchemyTemplateSrc,

apps/web/src/app/(home)/new/_components/stack-builder.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ import {
5151
} from "./utils";
5252
import { YoloToggle } from "./yolo-toggle";
5353

54+
function formatProjectName(name: string): string {
55+
return name.replace(/\s+/g, "-");
56+
}
57+
5458
const StackBuilder = () => {
5559
const [stack, setStack] = useStackState();
5660

@@ -69,10 +73,6 @@ const StackBuilder = () => {
6973

7074
const projectNameError = validateProjectName(stack.projectName || "");
7175

72-
const formatProjectName = (name: string): string => {
73-
return name.replace(/\s+/g, "-");
74-
};
75-
7676
const getStackUrl = (): string => {
7777
const stackToUse = compatibilityAnalysis.adjustedStack || stack;
7878
const projectName = stackToUse.projectName || "my-better-t-app";
@@ -264,8 +264,7 @@ const StackBuilder = () => {
264264
};
265265
const cmd = generateStackCommand(stackWithProjectName);
266266
setCommand(cmd);
267-
// biome-ignore lint/correctness/useExhaustiveDependencies: let it be
268-
}, [stack, compatibilityAnalysis.adjustedStack, formatProjectName]);
267+
}, [stack, compatibilityAnalysis.adjustedStack]);
269268

270269
const handleTechSelect = (
271270
category: keyof typeof TECH_OPTIONS,

apps/web/src/lib/sponsor-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const filterCurrentSponsors = (sponsors: Sponsor[]): Sponsor[] => {
9696

9797
export const filterPastSponsors = (_sponsors: Sponsor[]): Sponsor[] => {
9898
// Past sponsors are handled separately in the new structure
99+
void _sponsors;
99100
return [];
100101
};
101102

apps/web/src/lib/stack-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function generateStackCommand(stack: StackState) {
6666
const projectName = stack.projectName || "my-better-t-app";
6767

6868
const isStackDefaultExceptProjectName = Object.entries(DEFAULT_STACK).every(
69-
([key, _defaultValue]) =>
69+
([key]) =>
7070
key === "projectName" ||
7171
isStackDefault(
7272
stack,

0 commit comments

Comments
 (0)