Skip to content

linter: Invalid fix for typescript/consistent-indexed-object-style rule #17866

@connorshea

Description

@connorshea

What version of Oxlint are you using?

unreleased

What command did you run?

No response

What does your .oxlintrc.json config file look like?

N/A

What happened?

See: https://github.com/oxc-project/oxc-ecosystem-ci/actions/runs/20888867135/job/60016741058#step:11:73

I suspect this is due to the changes for consistent-indexed-object-style in #17802

This:

declare module "ember-task-scheduler" {
    export default interface SchedulerService {
        [key: string]: unknown;
    }
}

Becomes:

declare module "ember-task-scheduler" {
    export default type SchedulerService = Record<string, unknown>;
}

And you can't have a default export for a type, apparently.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions