What version of Oxlint are you using?
1.12.0
What command did you run?
oxlint
What does your .oxlintrc.json config file look like?
What happened?
The import/namespace rule incorrectly reports an existing exported type as missing. When running the linter with the following snippet, the linter reports an error on the second use of z.infer.
import * as z from "zod"; // Using version ^3.25.76
const foo = z.object({
foo: z.string(),
});
// No error reported in this line
export type Foo = z.infer<typeof foo>;
// × eslint-plugin-import(namespace): "infer" not found in imported namespace "zod".
export interface Bar extends z.infer<typeof foo> {
bar: string;
}
What version of Oxlint are you using?
1.12.0
What command did you run?
oxlintWhat does your
.oxlintrc.jsonconfig file look like?{ "$schema": "./node_modules/oxlint/configuration_schema.json", "plugins": [ "import", ], "categories": { "correctness": "error" }, "rules": { }, "settings": { }, "env": { "builtin": true }, "globals": {}, "ignorePatterns": [] }What happened?
The
import/namespacerule incorrectly reports an existing exported type as missing. When running the linter with the following snippet, the linter reports an error on the second use ofz.infer.