Skip to content

Commit 00c79f1

Browse files
committed
style: lint
1 parent 698546c commit 00c79f1

10 files changed

Lines changed: 9 additions & 20 deletions

File tree

core/pfe-core/controllers/internals-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class InternalsController implements ReactiveController, ARIAMixin {
340340
/** @see https://w3c.github.io/aria/#ref-for-dom-ariamixin-ariaactivedescendantelement-1 */
341341
declare global {
342342
// https://github.com/webcomponents-cg/community-protocols/pull/75
343-
var _elementInternals: WeakMap<Element, ElementInternals>; // eslint-disable-line no-var
343+
var _elementInternals: WeakMap<Element, ElementInternals>;
344344
interface ARIAMixin {
345345
ariaActiveDescendantElement: Element | null;
346346
ariaControlsElements: readonly Element[] | null;

core/pfe-core/controllers/slot-controller-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class SlotController implements SlotControllerPublicAPI {
1212

1313
static anonymousAttribute = 'ssr-hint-has-slotted-default' as const;
1414

15-
constructor(public host: ReactiveElement, ..._: SlotControllerArgs) {
15+
constructor(public host: ReactiveElement, ..._args: SlotControllerArgs) {
1616
host.addController(this);
1717
}
1818

@@ -24,7 +24,7 @@ export class SlotController implements SlotControllerPublicAPI {
2424
.map(x => x.trim());
2525
}
2626

27-
getSlotted<T extends Element = Element>(..._: (string | null)[]): T[] {
27+
getSlotted<T extends Element = Element>(..._names: (string | null)[]): T[] {
2828
return [];
2929
}
3030

core/pfe-core/controllers/test/combobox-controller.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect, fixture, nextFrame } from '@open-wc/testing';
1+
import { expect, fixture } from '@open-wc/testing';
22
import { sendKeys } from '@web/test-runner-commands';
33
import { a11ySnapshot } from '@patternfly/pfe-tools/test/a11y-snapshot.js';
44

elements/pf-v5-alert/pf-v5-alert.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { LitElement, html, type TemplateResult } from 'lit';
22
import { customElement } from 'lit/decorators/custom-element.js';
33
import { property } from 'lit/decorators/property.js';
4-
import { classMap } from 'lit/directives/class-map.js';
54
import { ifDefined } from 'lit/directives/if-defined.js';
65

76
import { observes } from '@patternfly/pfe-core/decorators.js';

elements/pf-v5-hint/test/pf-hint.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ describe('<pf-v5-hint>', function() {
2222
});
2323

2424
describe('basic hint', function() {
25-
let element: PfV5Hint;
2625
beforeEach(async function() {
27-
element = await createFixture<PfV5Hint>(html`
26+
await createFixture<PfV5Hint>(html`
2827
<pf-v5-hint>Welcome to the new documentation experience.</pf-v5-hint>
2928
`);
3029
});

elements/pf-v5-search-input/demo/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
const searchInput = document.getElementById('search-input');
3030

3131
searchInput.addEventListener('change', (event) => {
32-
/* eslint-disable no-console */
3332
console.log('Selected:', event.target.value);
34-
/* eslint-disable no-console */
3533
});
3634
</script>
3735

elements/pf-v5-search-input/demo/pf-search-input-with-submit.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,13 @@
3333
const searchInput = document.getElementById('search-input');
3434

3535
searchInput.addEventListener('change', (event) => {
36-
/* eslint-disable no-console */
3736
console.log('Selected:', event.target.value);
38-
/* eslint-disable no-console */
3937
});
4038

4139
const form = document.querySelector('form.container');
4240
form.addEventListener('submit', (event) =>{
4341
event.preventDefault();
44-
/* eslint-disable no-console */
4542
console.log("Value:", form.elements.search?.value);
46-
/* eslint-disable no-console */
4743
})
4844
</script>
4945

tools/pfe-tools/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@
7878
"@web/dev-server-import-maps": "^0.2.1",
7979
"@web/dev-server-rollup": "^0.6.4",
8080
"@web/test-runner": "^0.20.2",
81+
"@web/test-runner-chrome": "^0.18.0",
8182
"@web/test-runner-commands": "^0.9.0",
8283
"@web/test-runner-junit-reporter": "^0.8.0",
83-
"@web/test-runner-chrome": "^0.18.0",
84-
"puppeteer": "^24.0.0",
8584
"chalk": "^5.6.2",
8685
"clean-css": "^5.3.3",
8786
"colorjs.io": "^0.6.0",
@@ -103,6 +102,7 @@
103102
"nunjucks": "^3.2.4",
104103
"patch-package": "^8.0.1",
105104
"playwright": "~1.57.0",
105+
"puppeteer": "^24.0.0",
106106
"rollup-plugin-lit-css": "^6.0.0",
107107
"sinon": "^21.0.1",
108108
"ts-lit-plugin": "^2.0.2",

tools/pfe-tools/test/create-fixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { TemplateResult } from 'lit';
22
import { chai, fixtureCleanup, fixture } from '@open-wc/testing';
3-
// @ts-ignore: colorjs.io types not resolved with Node moduleResolution on Windows CI
3+
// @ts-expect-error: colorjs.io types not resolved with Node moduleResolution on Windows CI
44
import Color from 'colorjs.io';
55

66
/**

web-dev-server.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
pfeDevServerConfig,
3-
getPatternflyIconNodemodulesImports,
4-
} from '@patternfly/pfe-tools/dev-server/config.js';
1+
import { pfeDevServerConfig } from '@patternfly/pfe-tools/dev-server/config.js';
52
import { makeDemoEnv } from '@patternfly/pfe-tools/environment.js';
63

74
import { writeFile, mkdir } from 'node:fs/promises';

0 commit comments

Comments
 (0)