Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3.3.3 (#2934)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Spirig <[email protected]>
  • Loading branch information
renovate[bot] and kyubisation authored Jul 15, 2024
1 parent ec11fcb commit dbfd5aa
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/elements/tag/tag-group/tag-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class SbbTagGroupElement extends SbbNamedSlotListMixin<SbbTagElement, typ
? this._value
: this.multiple
? this.tags.filter((t) => 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;

Expand Down
4 changes: 2 additions & 2 deletions src/elements/toggle/toggle/toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tools/eslint/missing-component-documentation-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tools/node-esm-hook/tsconfig-utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
2 changes: 1 addition & 1 deletion web-test-runner.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const testRunnerHtml = (
<style type="text/css">${renderStyles()}</style>
<script>
globalThis.testEnv = '${cliArgs.debug ? 'debug' : ''}';
globalThis.testGroup = '${cliArgs.ssr ? 'ssr' : group?.name ?? 'default'}';
globalThis.testGroup = '${cliArgs.ssr ? 'ssr' : (group?.name ?? 'default')}';
globalThis.testRunScript = '${testFramework}';
</script>
</head>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==

[email protected].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==
[email protected].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"
Expand Down

0 comments on commit dbfd5aa

Please sign in to comment.