Skip to content

Commit 8e2945e

Browse files
committed
Handle @typescript-eslint/no-empty-interface -> @typescript-eslint/no-empty-object-type
1 parent 3cb75fe commit 8e2945e

File tree

14 files changed

+15
-15
lines changed

14 files changed

+15
-15
lines changed

packages/@ember/-internals/owner/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export type FullName<
7171
@for @ember/owner
7272
@private
7373
*/
74-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
74+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
7575
export interface DIRegistry {}
7676

7777
// Convenience utility for pulling a specific factory manager off `DIRegistry`

packages/@ember/component/template-only.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { templateOnlyComponent as glimmerTemplateOnlyComponent } from '@glimmer/
3838
* templates is null. This means that you can only reference passed in arguments
3939
* (e.g. `{{@arg}}`).
4040
*/
41-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
41+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
4242
export interface TemplateOnlyComponent<S = unknown> extends Opaque<S> {}
4343

4444
/**

packages/@ember/controller/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,5 +390,5 @@ export { Controller as default, ControllerMixin };
390390
Then `@inject` can check that the service is registered correctly, and APIs
391391
like `owner.lookup('controller:example')` can return `ExampleController`.
392392
*/
393-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
393+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
394394
export interface Registry extends Record<string, Controller | undefined> {}

packages/@ember/engine/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface Initializer<T> {
5353
@uses RegistryProxyMixin
5454
@public
5555
*/
56-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
56+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
5757
interface Engine extends RegistryProxyMixin {}
5858
class Engine extends Namespace.extend(RegistryProxyMixin) {
5959
static initializers: Record<string, Initializer<Engine>> = Object.create(null);

packages/@ember/enumerable/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Mixin from '@ember/object/mixin';
1313
@class Enumerable
1414
@private
1515
*/
16-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
16+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
1717
interface Enumerable {}
1818
const Enumerable = Mixin.create();
1919

packages/@ember/enumerable/mutable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Mixin from '@ember/object/mixin';
1515
@uses Enumerable
1616
@private
1717
*/
18-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
18+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
1919
interface MutableEnumerable extends Enumerable {}
2020
const MutableEnumerable = Mixin.create(Enumerable);
2121

packages/@ember/helper/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export const invokeHelper = glimmerInvokeHelper;
332332
// currently typed only as `object`, and we are replacing it with a similarly
333333
// low-information interface type: these are empty objects which are simply able
334334
// to be distinguished so that Glint can provide the relevant extensions.
335-
/* eslint-disable @typescript-eslint/no-empty-interface */
335+
/* eslint-disable @typescript-eslint/no-empty-object-type */
336336

337337
/**
338338
* Using the `{{hash}}` helper, you can pass objects directly from the template
@@ -491,4 +491,4 @@ export interface FnHelper extends Opaque<'helper:fn'> {}
491491
export const uniqueId = glimmerUniqueId;
492492
export type UniqueIdHelper = typeof uniqueId;
493493

494-
/* eslint-enable @typescript-eslint/no-empty-interface */
494+
/* eslint-enable @typescript-eslint/no-empty-object-type */

packages/@ember/modifier/on.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Opaque } from '@ember/-internals/utility-types';
66
// needs to be importable. Declaring it with a unique interface like this,
77
// however, gives tools like Glint (that *do* have a richer notion of what it
88
// is) a place to install more detailed type information.
9-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
9+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
1010
export interface OnModifier extends Opaque<'modifier:on'> {}
1111

1212
// SAFETY: at the time of writing, the cast here is from `{}` to `OnModifier`,

packages/@ember/object/-internals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import EmberObject from '.';
2121
// `OWNER` property key from the super class, eliminating the private name
2222
// shenanigans.
2323

24-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
24+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
2525
interface FrameworkObject extends EmberObject {}
2626
let FrameworkObject: typeof EmberObject = class FrameworkObject extends EmberObject {};
2727

packages/@ember/object/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export {
3737
@uses Observable
3838
@public
3939
*/
40-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
40+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
4141
interface EmberObject extends Observable {}
4242
class EmberObject extends CoreObject.extend(Observable) {
4343
get _debugContainerKey() {

0 commit comments

Comments
 (0)