diff --git a/package.json b/package.json index 82ac6865de..d955cd60f9 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "npm-run-all2": "6.2.2", "playwright": "1.44.1", "postcss": "8.4.39", - "prettier": "3.3.2", + "prettier": "3.3.3", "react": "18.3.1", "react-dom": "18.3.1", "rollup-plugin-postcss-lit": "2.1.0", @@ -157,7 +157,7 @@ "jackspeak": "2.1.1", "lit": "3.1.4", "playwright": "1.44.1", - "prettier": "3.3.2" + "prettier": "3.3.3" }, "prettier": { "singleQuote": true, diff --git a/src/elements/tag/tag-group/tag-group.ts b/src/elements/tag/tag-group/tag-group.ts index 145737c7d1..074d3c097d 100644 --- a/src/elements/tag/tag-group/tag-group.ts +++ b/src/elements/tag/tag-group/tag-group.ts @@ -80,7 +80,7 @@ export class SbbTagGroupElement extends SbbNamedSlotListMixin t.checked).map((t) => t.value) - : this.tags.find((t) => t.checked)?.value ?? null; + : (this.tags.find((t) => t.checked)?.value ?? null); } private _value: string | string[] | null = null; diff --git a/src/elements/toggle/toggle/toggle.ts b/src/elements/toggle/toggle/toggle.ts index 0d06235397..d1124473cd 100644 --- a/src/elements/toggle/toggle/toggle.ts +++ b/src/elements/toggle/toggle/toggle.ts @@ -69,8 +69,8 @@ export class SbbToggleElement extends LitElement { } public get value(): string { return isServer - ? this._value ?? '' - : this.options.find((o) => o.checked)?.value ?? this.options[0]?.value ?? ''; + ? (this._value ?? '') + : (this.options.find((o) => o.checked)?.value ?? this.options[0]?.value ?? ''); } private _value: string | null = null; diff --git a/tools/eslint/missing-component-documentation-rule.ts b/tools/eslint/missing-component-documentation-rule.ts index 91f3512455..e01cc7a917 100644 --- a/tools/eslint/missing-component-documentation-rule.ts +++ b/tools/eslint/missing-component-documentation-rule.ts @@ -99,7 +99,7 @@ export const rule: TSESLint.RuleModule<'missingEventDocs', never[]> = createRule const doc = context.getSourceCode().getCommentsBefore(node.parent!)?.[0]; const eventDoc = doc - ? parse(`/*${doc.value}*/`)[0] ?? parse(`/**${doc.value}*/`)[0] + ? (parse(`/*${doc.value}*/`)[0] ?? parse(`/**${doc.value}*/`)[0]) : undefined; if (eventDoc?.tags.some((t) => t.tag === 'internal')) { return; diff --git a/tools/node-esm-hook/tsconfig-utility.js b/tools/node-esm-hook/tsconfig-utility.js index 15c4c0254c..20eedd9dbe 100644 --- a/tools/node-esm-hook/tsconfig-utility.js +++ b/tools/node-esm-hook/tsconfig-utility.js @@ -44,6 +44,6 @@ export const createAliasResolver = (/** @type {'src' | 'dist'} */ mode = 'src') return (/** @type {string} */ specifier) => aliasPrefixes.some((p) => specifier.startsWith(p)) - ? aliasPaths.find((a) => a.match(specifier))?.resolve(specifier) ?? null + ? (aliasPaths.find((a) => a.match(specifier))?.resolve(specifier) ?? null) : null; }; diff --git a/web-test-runner.config.ts b/web-test-runner.config.ts index 1c113727ed..3cc9fed22a 100644 --- a/web-test-runner.config.ts +++ b/web-test-runner.config.ts @@ -109,7 +109,7 @@ const testRunnerHtml = ( diff --git a/yarn.lock b/yarn.lock index f852c32dd9..672deeb243 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8556,10 +8556,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@3.3.2, prettier@^3.1.1: - version "3.3.2" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a" - integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA== +prettier@3.3.3, prettier@^3.1.1: + version "3.3.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105" + integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew== pretty-format@^27.0.2: version "27.5.1"