Skip to content

Commit 4e1fd4e

Browse files
committed
fix: lint issues
1 parent 724597c commit 4e1fd4e

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

packages/ui-webc/src/components/checkbox/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class ScoutCheckbox {
5757
*/
5858

5959
render() {
60-
const Tag = this.label && this.label.length ? "label" : "div";
60+
const Tag = this.label?.length ? "label" : "div";
6161
return (
6262
<Tag>
6363
{this.label}

packages/ui-webc/src/components/list-view-item/list-view-item.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class ScoutListViewItem {
4444
: {};
4545

4646
return (
47-
// biome-ignore lint/a11y/useSemanticElements: We can't use <li> because we're using shadow DOM.
4847
<Host role="listitem">
4948
<Tag
5049
class="button"

packages/ui-webc/src/components/list-view/list-view.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { Component, Host, h } from "@stencil/core";
1010
export class ScoutListView {
1111
render() {
1212
return (
13-
// biome-ignore lint/a11y/useSemanticElements: We can't use <ul> because we're using shadow DOM.
1413
<Host role="list">
1514
<slot />
1615
</Host>

packages/ui-webc/src/components/switch/switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class ScoutSwitch {
5555
}
5656

5757
render() {
58-
const Tag = this.label && this.label.length ? "label" : "div";
58+
const Tag = this.label?.length ? "label" : "div";
5959
return (
6060
<Tag>
6161
{this.label}

0 commit comments

Comments
 (0)