Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ dist-ssr
*.sln
*.sw?

# Lock files
bun.lockb

# dotenv
.env
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function App() {
const recipeToFirebase = (recipe: string, path: string, id: string): object => {
const recipeJson = JSON.parse(recipe);
if (recipeJson.bounding_box) {
let flattened_array = Object.assign({}, recipeJson.bounding_box);
const flattened_array = Object.assign({}, recipeJson.bounding_box);
recipeJson.bounding_box = flattened_array;
}
recipeJson[FIRESTORE_FIELDS.RECIPE_PATH] = path;
Expand All @@ -59,7 +59,7 @@ function App() {
setRunTime(0);
let firebaseRecipe = "firebase:recipes/" + selectedRecipe;
const firebaseConfig = "firebase:configs/" + selectedConfig;
let recipeChanged: boolean = await recipeHasChanged();
const recipeChanged: boolean = await recipeHasChanged();
if (recipeChanged) {
const recipeId = uuidv4();
firebaseRecipe = "firebase:recipes_edited/" + recipeId;
Expand Down
3 changes: 2 additions & 1 deletion src/recipeLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ const stripFirebaseFields = <T extends { name: string; id: string; dedup_hash: s
obj: T
): Omit<T, "name" | "id" | "dedup_hash"> => {
const { name, id, dedup_hash, ...viewable } = obj;
return viewable;
void name; void id; void dedup_hash; // Tell linter these are intentionally unused, we are "using" them by excluding them
return viewable as Omit<T, "name" | "id" | "dedup_hash">;
};

// reusable function for converting a collection of Firebase objects to a viewable format)
Expand Down