Use kebab case instead of camel case

This commit is contained in:
tniezg
2021-08-18 18:14:49 +02:00
parent 17f8d497b8
commit c150a79a6b
28 changed files with 39 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
import { SpreeProductImage } from '../types'
import getImageUrl from './getImageUrl'
import getImageUrl from './get-image-url'
const createGetAbsoluteImageUrl =
(host: string) =>

View File

@@ -8,7 +8,7 @@ import type {
} from '@spree/storefront-api-v2-sdk/types/interfaces/JsonApi'
import type { RelationType } from '@spree/storefront-api-v2-sdk/types/interfaces/Relationships'
import SpreeResponseContentError from '../errors/SpreeResponseContentError'
import { findIncluded } from './jsonApi'
import { findIncluded } from './find-json-api-documents'
const isColorProductOption = (productOption: ProductOption) => {
return productOption.displayName === 'Color'

View File

@@ -1,6 +1,6 @@
import type { NonUndefined, UnknownObjectValues } from '../types'
import MisconfigurationError from '../errors/MisconfigurationError'
import isServer from './isServer'
import isServer from './is-server'
const generateMisconfigurationErrorMessage = (
keys: Array<string | number | symbol>

View File

@@ -1,4 +1,4 @@
import { requireConfigValue } from '@framework/isomorphicConfig'
import { requireConfigValue } from '@framework/isomorphic-config'
import Cookies from 'js-cookie'
const getCartToken = () =>

View File

@@ -5,7 +5,7 @@ import type {
SelectedOption,
} from '@commerce/types/cart'
import MissingLineItemVariantError from '@framework/errors/MissingLineItemVariantError'
import { requireConfigValue } from '@framework/isomorphicConfig'
import { requireConfigValue } from '@framework/isomorphic-config'
import type {
JsonApiDocument,
JsonApiListResponse,
@@ -14,9 +14,9 @@ import type {
import type { OrderAttr } from '@spree/storefront-api-v2-sdk/types/interfaces/Order'
import { ProductAttr } from '@spree/storefront-api-v2-sdk/types/interfaces/Product'
import type { RelationType } from '@spree/storefront-api-v2-sdk/types/interfaces/Relationships'
import createGetAbsoluteImageUrl from './createGetAbsoluteImageUrl'
import getMediaGallery from './getMediaGallery'
import { findIncluded, findIncludedOfType } from './jsonApi'
import createGetAbsoluteImageUrl from './create-get-absolute-image-url'
import getMediaGallery from './get-media-gallery'
import { findIncluded, findIncludedOfType } from './find-json-api-documents'
const isColorProductOption = (productOptionType: any) => {
// TODO: Fix type and merge with isColorProductOption in framework/spree/utils/expandOptions.ts

View File

@@ -10,11 +10,11 @@ import type {
} from '@spree/storefront-api-v2-sdk/types/interfaces/JsonApi'
import type { ProductAttr } from '@spree/storefront-api-v2-sdk/types/interfaces/Product'
import type { RelationType } from '@spree/storefront-api-v2-sdk/types/interfaces/Relationships'
import { requireConfigValue } from '../isomorphicConfig'
import createGetAbsoluteImageUrl from './createGetAbsoluteImageUrl'
import expandOptions from './expandOptions'
import getMediaGallery from './getMediaGallery'
import { findIncludedOfType } from './jsonApi'
import { requireConfigValue } from '@framework/isomorphic-config'
import createGetAbsoluteImageUrl from './create-get-absolute-image-url'
import expandOptions from './expand-options'
import getMediaGallery from './get-media-gallery'
import { findIncludedOfType } from './find-json-api-documents'
const normalizeProduct = (
spreeSuccessResponse: JsonApiSingleResponse | JsonApiListResponse,

View File

@@ -1,4 +1,4 @@
import { requireConfigValue } from '@framework/isomorphicConfig'
import { requireConfigValue } from '@framework/isomorphic-config'
import Cookies from 'js-cookie'
const setCartToken = (cartToken: string) => {