Skip to content

Commit 42a481d

Browse files
committed
BREAKING CHANGES(prettier-config): Migrate to Prettier v3 and ESM syntax
1 parent 5a01b24 commit 42a481d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/prettier-config/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
module.exports = {
1+
export default {
22
singleQuote: true,
33
bracketSpacing: true,
44
printWidth: 120,
55
semi: true,
6-
trailingComma: 'all',
76
};

packages/prettier-config/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
],
1010
"author": "Tomáš Litera <tomas.litera@lmc.eu>",
1111
"license": "BSD-3-Clause",
12+
"type": "module",
1213
"main": "index.js",
1314
"publishConfig": {
1415
"access": "public"
@@ -20,5 +21,8 @@
2021
},
2122
"engines": {
2223
"node": "^16 || ^18 || >=20"
24+
},
25+
"peerDependencies": {
26+
"prettier": "^3.6.2"
2327
}
2428
}

yarn.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,8 @@ __metadata:
16341634
"@lmc-eu/prettier-config@workspace:packages/prettier-config":
16351635
version: 0.0.0-use.local
16361636
resolution: "@lmc-eu/prettier-config@workspace:packages/prettier-config"
1637+
peerDependencies:
1638+
prettier: ^3.6.2
16371639
languageName: unknown
16381640
linkType: soft
16391641

0 commit comments

Comments
 (0)