Skip to content

Commit 8c95d56

Browse files
committed
chore: Fixed/ignored lint errors
1 parent 40f2ac9 commit 8c95d56

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

docs-app/app/controllers/products.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class ProductsController extends Controller {
3434
value,
3535
}: {
3636
key: string;
37-
value: any;
37+
value: unknown;
3838
}): void {
3939
if (key !== 'name') {
4040
return;
@@ -46,6 +46,6 @@ export default class ProductsController extends Controller {
4646
return;
4747
}
4848

49-
this[key] = value;
49+
this[key] = value as string;
5050
}
5151
}

docs-app/app/modifiers/draw-stacked-chart.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
// @ts-nocheck
3-
/* eslint-disable @typescript-eslint/unbound-method, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */
3+
/* eslint-disable
4+
@typescript-eslint/no-unsafe-argument,
5+
@typescript-eslint/no-unsafe-assignment,
6+
@typescript-eslint/no-unsafe-call,
7+
@typescript-eslint/no-unsafe-member-access,
8+
@typescript-eslint/no-unsafe-return,
9+
@typescript-eslint/unbound-method
10+
*/
411
import { registerDestructor } from '@ember/destroyable';
512
import { action } from '@ember/object';
613
import { extent, max, rollup, ticks } from 'd3-array';

docs-app/tests/integration/components/ui/form/input-test.gts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { setupRenderingTest } from 'docs-app/tests/helpers';
99
import { module, test } from 'qunit';
1010

1111
interface TestContext extends BaseTestContext {
12-
data: Record<string, any>;
12+
data: Record<string, unknown>;
1313
updateData: ({ key, value }: { key: string; value: unknown }) => void;
1414
}
1515

packages/ember-container-query/src/modifiers/container-query.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export default class ContainerQuery<
7373

7474
registerDestructor(this, () => {
7575
if (this._element) {
76+
// eslint-disable-next-line @typescript-eslint/unbound-method
7677
this._resizeObserver.unobserve(this._element, this.onResize);
7778
}
7879
});
@@ -129,10 +130,12 @@ export default class ContainerQuery<
129130

130131
private registerResizeObserver(element: Element): void {
131132
if (this._element) {
133+
// eslint-disable-next-line @typescript-eslint/unbound-method
132134
this._resizeObserver.unobserve(this._element, this.onResize);
133135
}
134136

135137
this._element = element;
138+
// eslint-disable-next-line @typescript-eslint/unbound-method
136139
this._resizeObserver.observe(this._element, this.onResize);
137140
}
138141

@@ -168,7 +171,7 @@ export default class ContainerQuery<
168171
const element = resizeObserverEntry.target;
169172

170173
if (this.debounce > 0) {
171-
// eslint-disable-next-line ember/no-runloop
174+
// eslint-disable-next-line @typescript-eslint/unbound-method, ember/no-runloop
172175
_debounce(this, this.queryContainer, element, this.debounce);
173176
return;
174177
}

0 commit comments

Comments
 (0)