Skip to content

linter: no-restricted-imports missing option support for allowTypeImports, allowImportNames, group, .. #7810

@Sysix

Description

@Sysix

What version of Oxlint are you using?

0.15.0

What command did you run?

--

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


What happened?

Because this is originally only a eslint rule, it does not support the option of the alias rule @typescript-eslint/no-restricted-imports.

See the implementation here:

struct RestrictedPath {
name: CompactStr,
#[serde(rename = "importNames")]
import_names: Option<Box<[CompactStr]>>,
message: Option<CompactStr>,
}

I expect to use allowTypeImports option

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions