Skip to content

Commit 42949ad

Browse files
Fix lint warnings (#1170)
* Fix lint warnings * Format * Fix build on CI
1 parent 0f0588a commit 42949ad

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/lit-element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class LitElement extends UpdatingElement {
133133
static styles?: CSSResultOrNative|CSSResultArray;
134134

135135
/** @nocollapse */
136-
static shadowRootOptions: ShadowRootInit = { mode: "open" };
136+
static shadowRootOptions: ShadowRootInit = {mode: 'open'};
137137

138138
private static _styles: Array<CSSResultOrNative|CSSResult>|undefined;
139139

@@ -240,7 +240,7 @@ export class LitElement extends UpdatingElement {
240240
*/
241241
protected createRenderRoot(): Element|ShadowRoot {
242242
return this.attachShadow(
243-
(this.constructor as typeof LitElement).shadowRootOptions);
243+
(this.constructor as typeof LitElement).shadowRootOptions);
244244
}
245245

246246
/**

src/test/lit-element_styling_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ suite('Styling', () => {
130130
}
131131

132132
firstUpdated() {
133-
this.inner = this.shadowRoot!.querySelector('x-inner')! as LitElement;
133+
this.inner = this.shadowRoot!.querySelector('x-inner') as LitElement;
134134
}
135135
}
136136
customElements.define(name, E);

src/test/lit-element_test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,14 @@ suite('LitElement', () => {
291291
});
292292

293293
(window.ShadyDOM && window.ShadyDOM.inUse ? test.skip : test)(
294-
"can customize shadowRootOptions",
295-
async () => {
294+
'can customize shadowRootOptions', async () => {
296295
class A extends LitElement {
297-
static shadowRootOptions: ShadowRootInit = { mode: "closed" };
296+
static shadowRootOptions: ShadowRootInit = {mode: 'closed'};
298297
}
299298
customElements.define(generateElementName(), A);
300299
const a = new A();
301300
container.appendChild(a);
302301
await a.updateComplete;
303302
assert.equal(a.shadowRoot, undefined);
304-
}
305-
);
303+
});
306304
});

0 commit comments

Comments
 (0)