mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
53 lines
1.1 KiB
JavaScript
53 lines
1.1 KiB
JavaScript
const { Prisma } = require("@prisma/client");
|
|
|
|
const categories = [
|
|
{
|
|
name: "Hats",
|
|
description: "Things you can wear on your head",
|
|
},
|
|
{
|
|
name: "Socks",
|
|
description: "Things you can wear on your feet",
|
|
},
|
|
{
|
|
name: "Shirts",
|
|
description: "Things you wear on the top half of your body",
|
|
},
|
|
];
|
|
|
|
const products = [
|
|
{
|
|
name: "Cool helmet.",
|
|
description: "A nice helmet to wear on your head",
|
|
price: new Prisma.Decimal(19.95),
|
|
image: "/images/helmet.jpg",
|
|
category_id: 1,
|
|
},
|
|
{
|
|
name: "Grey T-Shirt",
|
|
description: "A nice shirt that you can wear on your body",
|
|
price: new Prisma.Decimal(22.95),
|
|
image: "/images/shirt.jpg",
|
|
category_id: 3,
|
|
},
|
|
{
|
|
name: "Socks",
|
|
description: "Cool socks that you can wear on your feet",
|
|
price: new Prisma.Decimal(12.95),
|
|
image: "/images/socks.jpg",
|
|
category_id: 2,
|
|
},
|
|
{
|
|
name: "Sweatshirt",
|
|
description: "Cool sweatshirt that you can wear on your body",
|
|
price: new Prisma.Decimal(12.95),
|
|
image: "/images/sweatshirt.jpg",
|
|
category_id: 3,
|
|
},
|
|
];
|
|
|
|
module.exports = {
|
|
products,
|
|
categories,
|
|
};
|