mirror of
https://github.com/vercel/commerce.git
synced 2025-05-14 13:47:49 +00:00
feat: update packages and prettier
This commit is contained in:
parent
bf4b09ec35
commit
cab413a1f8
@ -91,9 +91,8 @@ export async function getFirstSeoUrlElement(
|
|||||||
|
|
||||||
export async function getFirstProduct(productId: string): Promise<ExtendedProduct | undefined> {
|
export async function getFirstProduct(productId: string): Promise<ExtendedProduct | undefined> {
|
||||||
const productCriteria = getDefaultProductCriteria(productId);
|
const productCriteria = getDefaultProductCriteria(productId);
|
||||||
const listing: ExtendedProductListingResult | undefined = await requestProductsCollection(
|
const listing: ExtendedProductListingResult | undefined =
|
||||||
productCriteria
|
await requestProductsCollection(productCriteria);
|
||||||
);
|
|
||||||
if (listing && listing.elements && listing.elements.length > 0 && listing.elements[0]) {
|
if (listing && listing.elements && listing.elements.length > 0 && listing.elements[0]) {
|
||||||
return listing.elements[0];
|
return listing.elements[0];
|
||||||
}
|
}
|
||||||
|
32
package.json
32
package.json
@ -19,33 +19,33 @@
|
|||||||
"*": "prettier --write --ignore-unknown"
|
"*": "prettier --write --ignore-unknown"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^1.7.15",
|
"@headlessui/react": "^1.7.17",
|
||||||
"@heroicons/react": "^2.0.18",
|
"@heroicons/react": "^2.0.18",
|
||||||
"@shopware/api-client": "0.0.0-canary-20230904132316",
|
"@shopware/api-client": "0.0.0-canary-20230904132316",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
"next": "13.4.13-canary.15",
|
"next": "13.5.4",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-paginate": "^8.2.0"
|
"react-paginate": "^8.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/container-queries": "^0.1.1",
|
"@tailwindcss/container-queries": "^0.1.1",
|
||||||
"@tailwindcss/typography": "^0.5.9",
|
"@tailwindcss/typography": "^0.5.10",
|
||||||
"@types/node": "20.4.4",
|
"@types/node": "20.8.4",
|
||||||
"@types/react": "18.2.16",
|
"@types/react": "18.2.10",
|
||||||
"@types/react-dom": "18.2.7",
|
"@types/react-dom": "18.2.10",
|
||||||
"@vercel/git-hooks": "^1.0.0",
|
"@vercel/git-hooks": "^1.0.0",
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.16",
|
||||||
"eslint": "^8.45.0",
|
"eslint": "^8.51.0",
|
||||||
"eslint-config-next": "^13.4.12",
|
"eslint-config-next": "^13.5.4",
|
||||||
"eslint-config-prettier": "^8.8.0",
|
"eslint-config-prettier": "^9.0.0",
|
||||||
"eslint-plugin-unicorn": "^48.0.0",
|
"eslint-plugin-unicorn": "^48.0.1",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.2.3",
|
"lint-staged": "^14.0.1",
|
||||||
"postcss": "^8.4.27",
|
"postcss": "^8.4.31",
|
||||||
"prettier": "3.0.1",
|
"prettier": "3.0.3",
|
||||||
"prettier-plugin-tailwindcss": "^0.4.1",
|
"prettier-plugin-tailwindcss": "^0.5.5",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"typescript": "5.1.6"
|
"typescript": "5.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
889
pnpm-lock.yaml
generated
889
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,9 @@
|
|||||||
|
/** @type {import('prettier').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
singleQuote: true,
|
singleQuote: true,
|
||||||
arrowParens: 'always',
|
arrowParens: 'always',
|
||||||
trailingComma: 'none',
|
trailingComma: 'none',
|
||||||
printWidth: 100,
|
printWidth: 100,
|
||||||
tabWidth: 2,
|
tabWidth: 2,
|
||||||
// pnpm doesn't support plugin autoloading
|
plugins: ['prettier-plugin-tailwindcss']
|
||||||
// https://github.com/tailwindlabs/prettier-plugin-tailwindcss#installation
|
|
||||||
plugins: [require('prettier-plugin-tailwindcss')]
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user