Support 2k variant, combined listing usage with getProductOptions #6016
ci.yml
on: pull_request
⬣ ESLint
56s
⬣ Prettier
50s
Typescript
3m 28s
⬣ Unit tests
3m 59s
Annotations
21 errors and 5 warnings
⬣ Prettier
Process completed with exit code 1.
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.test.ts#L2
Replace `checkProductParam,·getAdjacentAndFirstAvailableVariants` with `⏎··checkProductParam,⏎··getAdjacentAndFirstAvailableVariants,⏎`
|
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.test.ts#L16
Replace `"snowboard"` with `'snowboard'`
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.test.ts#L19
Replace `"Color"` with `'Color'`
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.test.ts#L20
Replace `"Turquoise"` with `'Turquoise',`
|
|
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.test.ts#L29
Replace `"snowboard"` with `'snowboard'`
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.test.ts#L32
Replace `"Color"` with `'Color'`
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.test.ts#L33
Replace `"Turquoise"` with `'Turquoise',`
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
@shopify/hydrogen-react#typecheck: command (/home/runner/work/hydrogen/hydrogen/packages/hydrogen-react) /opt/hostedtoolcache/node/20.18.1/x64/bin/npm run typecheck exited (1)
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.ts#L1
'validate' is defined but never used
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.ts#L2
'decodeEncodedVariant' is defined but never used
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.ts#L3
'Maybe' is defined but never used
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.ts#L4
'PartialDeep' is defined but never used
|
⬣ ESLint:
packages/hydrogen-react/src/getProductOptions.ts#L325
'available' is never reassigned. Use 'const' instead
|