Skip to content

Commit 4047e34

Browse files
committed
Upgrade prettier and prettier related packages to latest
1 parent f027183 commit 4047e34

4 files changed

Lines changed: 43 additions & 17 deletions

File tree

cms/models/Article.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ export class Article {
2121
return new Article(content, metadata, collections);
2222
}
2323

24-
private constructor(private content: string, private metadata: Metadata, private collections: Collection[]) {}
24+
private constructor(
25+
private content: string,
26+
private metadata: Metadata,
27+
private collections: Collection[],
28+
) {}
2529

2630
public isDraft() {
2731
return !this.metadata.published;

cms/models/Collection.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { ApiCollection } from "@/cms/api/ApiCollection";
22

33
export class Collection {
4-
constructor(private slug: string, private name: string) {}
4+
constructor(
5+
private slug: string,
6+
private name: string,
7+
) {}
58

69
public getSlug() {
710
return this.slug;

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
"@typescript-eslint/parser": "5.62.0",
3535
"cypress": "12.17.4",
3636
"eslint": "8.57.0",
37-
"eslint-config-prettier": "8.10.0",
37+
"eslint-config-prettier": "9.1.0",
3838
"eslint-import-resolver-typescript": "3.6.1",
3939
"eslint-plugin-import": "2.29.1",
40-
"eslint-plugin-prettier": "4.2.1",
40+
"eslint-plugin-prettier": "5.1.3",
4141
"eslint-plugin-react": "7.34.1",
4242
"feed": "4.2.2",
4343
"jest": "29.6.4",
4444
"marked": "4.3.0",
45-
"prettier": "2.8.8",
45+
"prettier": "3.2.5",
4646
"start-server-and-test": "2.0.1",
4747
"ts-jest": "29.1.1",
4848
"ts-node": "10.9.2",

yarn.lock

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,11 @@
11901190
"@nodelib/fs.scandir" "2.1.5"
11911191
fastq "^1.6.0"
11921192

1193+
"@pkgr/core@^0.1.0":
1194+
version "0.1.1"
1195+
resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.1.tgz#1ec17e2edbec25c8306d424ecfbf13c7de1aaa31"
1196+
integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==
1197+
11931198
"@radix-ui/colors@2.0.1":
11941199
version "2.0.1"
11951200
resolved "https://registry.yarnpkg.com/@radix-ui/colors/-/colors-2.0.1.tgz#8b068e2ecd3c9fe82b91d400a3a78dad38645c7c"
@@ -3195,10 +3200,10 @@ escape-string-regexp@^4.0.0:
31953200
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
31963201
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
31973202

3198-
eslint-config-prettier@8.10.0:
3199-
version "8.10.0"
3200-
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz#3a06a662130807e2502fc3ff8b4143d8a0658e11"
3201-
integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==
3203+
eslint-config-prettier@9.1.0:
3204+
version "9.1.0"
3205+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f"
3206+
integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==
32023207

32033208
eslint-import-resolver-node@^0.3.9:
32043209
version "0.3.9"
@@ -3252,12 +3257,13 @@ eslint-plugin-import@2.29.1:
32523257
semver "^6.3.1"
32533258
tsconfig-paths "^3.15.0"
32543259

3255-
eslint-plugin-prettier@4.2.1:
3256-
version "4.2.1"
3257-
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b"
3258-
integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==
3260+
eslint-plugin-prettier@5.1.3:
3261+
version "5.1.3"
3262+
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz#17cfade9e732cef32b5f5be53bd4e07afd8e67e1"
3263+
integrity sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==
32593264
dependencies:
32603265
prettier-linter-helpers "^1.0.0"
3266+
synckit "^0.8.6"
32613267

32623268
eslint-plugin-react@7.34.1:
32633269
version "7.34.1"
@@ -6782,10 +6788,10 @@ prettier-linter-helpers@^1.0.0:
67826788
dependencies:
67836789
fast-diff "^1.1.2"
67846790

6785-
prettier@2.8.8:
6786-
version "2.8.8"
6787-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
6788-
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
6791+
prettier@3.2.5:
6792+
version "3.2.5"
6793+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
6794+
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==
67896795

67906796
pretty-bytes@^5.6.0:
67916797
version "5.6.0"
@@ -7762,6 +7768,14 @@ supports-preserve-symlinks-flag@^1.0.0:
77627768
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
77637769
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
77647770

7771+
synckit@^0.8.6:
7772+
version "0.8.8"
7773+
resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.8.8.tgz#fe7fe446518e3d3d49f5e429f443cf08b6edfcd7"
7774+
integrity sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==
7775+
dependencies:
7776+
"@pkgr/core" "^0.1.0"
7777+
tslib "^2.6.2"
7778+
77657779
tapable@^2.2.0:
77667780
version "2.2.1"
77677781
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
@@ -7931,6 +7945,11 @@ tslib@^2.4.0:
79317945
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
79327946
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
79337947

7948+
tslib@^2.6.2:
7949+
version "2.6.2"
7950+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
7951+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
7952+
79347953
tslib@~2.1.0:
79357954
version "2.1.0"
79367955
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"

0 commit comments

Comments
 (0)