Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions packages/ui5-tooling-modules/lib/rollup-plugin-webcomponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,13 @@ module.exports = function ({ log, resolveModule, pkgJson, getPackageJson, framew
type: "prebuilt-chunk",
id: source,
fileName: `${source}.js`,
code: prettier.format(code, { semi: false, parser: "babel" }),
code: prettier.format(code, {
// TODO: read from prettier config if existing
// otherwise use some defaults
semi: true,
trailingComma: "none",
parser: "babel",
}),
});

// store the metadata
Expand Down Expand Up @@ -341,7 +347,13 @@ module.exports = function ({ log, resolveModule, pkgJson, getPackageJson, framew
type: "prebuilt-chunk",
id: resolvedSource,
fileName: `${resolvedSource}.js`,
code: prettier.format(code, { semi: false, parser: "babel" }),
code: prettier.format(code, {
// TODO: read from prettier config if existing
// otherwise use some defaults
semi: true,
trailingComma: "none",
parser: "babel",
}),
});

// store the metadata
Expand Down
16 changes: 14 additions & 2 deletions packages/ui5-tooling-modules/lib/utils/DTSSerializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,13 @@ const DTSSerializer = {
Templates.module({
registryEntry,
}),
{ semi: false, parser: "typescript" },
{
// TODO: read from prettier config if existing
// otherwise use some defaults
semi: true,
trailingComma: "none",
parser: "typescript",
},
)
.then((prettifiedTypes) => {
if (prettifiedTypes) {
Expand All @@ -334,7 +340,13 @@ const DTSSerializer = {
clazz: registryEntry.classes[clazz],
BINDING_STRING_PLACEHOLDER: "`{${string}}`",
}),
{ semi: false, parser: "typescript" },
{
// TODO: read from prettier config if existing
// otherwise use some defaults
semi: true,
trailingComma: "none",
parser: "typescript",
},
)
.then((prettifiedTypes) => {
if (prettifiedTypes) {
Expand Down
Loading
Loading