We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.11.1
yarn oxlint -c .oxlint.json
.oxlint.json
{ "$schema": "./node_modules/oxlint/configuration_schema.json", "categories": { "correctness": "allow" }, "plugins": ["import"], "env": { "node": true }, "globals": {}, "settings": {}, "rules": { "import/export": "error" } }
I caught an error when I try use import/export with an typescript only export type. ESLint plugin work well.
You can see source code at here
The text was updated successfully, but these errors were encountered:
I try to check it.
UPD: reason is:
if files contains only export type or export interface that marked as no named export. Continue digging...
export type
export interface
looks like problem in ( I may be wrong):
oxc/crates/oxc_semantic/src/module_record/builder.rs
Lines 273 to 281 in 1282221
Sorry, something went wrong.
I try to check it. UPD: reason is: if files contains only export type or export interface that marked as no named export. Continue digging... looks like problem in ( I may be wrong): oxc/crates/oxc_semantic/src/module_record/builder.rs Lines 273 to 281 in 1282221 fn visit_export_named_declaration(&mut self, decl: &ExportNamedDeclaration) { if decl.export_kind.is_type() { return; } // ignore all TypeScript syntax as they overload if decl.is_typescript_syntax() { return; }
Thank you for the investigation, this is the problem. We need to add type information the ModuleRecord 😢
ModuleRecord
No branches or pull requests
What version of Oxlint are you using?
0.11.1
What command did you run?
yarn oxlint -c .oxlint.json
What does your
.oxlint.json
config file look like?What happened?
I caught an error when I try use import/export with an typescript only export type. ESLint plugin work well.
You can see source code at here
The text was updated successfully, but these errors were encountered: