Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
fix: cleanup lint errors and warning (#303)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeff Paltera <jpaltera@vuestorefront.io>
  • Loading branch information
jeffpdotone and Jeff Paltera authored Apr 6, 2022
1 parent e7756cf commit a0dd7b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions packages/composables/src/getters/productGetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export const getActiveVariantImage = (product) => {
}
};

export const getProductFiltered = (products, filters: ProductVariantFilters | any = {}) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const getProductFiltered = (products, _filters: ProductVariantFilters | any = {}) => {
if (!products) {
return [];
}
Expand Down Expand Up @@ -191,7 +192,7 @@ export const getProductCollections = (product, field = 'all') => {
}
if (product.collections && Object.keys(product.collections).length > 0) {
const collections = [];
Object.values(product.collections).map((collection: Record<string, unknown>) => {
Object.values(product.collections).forEach((collection: Record<string, unknown>) => {
if (field === 'all') {
collections.push({
id: collection.id,
Expand Down
20 changes: 10 additions & 10 deletions packages/composables/src/getters/searchGetters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,34 @@ const searchGetters: UseSearchGetters<QueryResult, Product> = {

return items
},
getCategoryTree(result: QueryResult): AgnosticCategoryTree {
getCategoryTree(_: QueryResult): AgnosticCategoryTree {
throw new Error('Function not implemented.')
},
getPagination(result: QueryResult): AgnosticPagination {
getPagination(_: QueryResult): AgnosticPagination {
throw new Error('Function not implemented.')
},
getItemPrice(item: Product): AgnosticPrice {
getItemPrice(_: Product): AgnosticPrice {
throw new Error('Function not implemented.')
},
getSortOptions(result: QueryResult): AgnosticSort {
getSortOptions(_: QueryResult): AgnosticSort {
throw new Error('Function not implemented.')
},
getBreadcrumbs(result: QueryResult): AgnosticBreadcrumb[] {
getBreadcrumbs(_: QueryResult): AgnosticBreadcrumb[] {
throw new Error('Function not implemented.')
},
getItemImages(item: Product): AgnosticMediaGalleryItem[] {
getItemImages(_: Product): AgnosticMediaGalleryItem[] {
throw new Error('Function not implemented.')
},
getFilters(result: QueryResult): AgnosticFilter[] {
getFilters(_: QueryResult): AgnosticFilter[] {
throw new Error('Function not implemented.')
},
getItemName(item: Product): string {
getItemName(_: Product): string {
throw new Error('Function not implemented.')
},
getItemId(item: Product): string {
getItemId(_: Product): string {
throw new Error('Function not implemented.')
},
getItemSlug(item: Product): string {
getItemSlug(_: Product): string {
throw new Error('Function not implemented.')
}
}
Expand Down

0 comments on commit a0dd7b2

Please sign in to comment.