What version of Oxlint are you using?
1.72.0
What command did you run?
oxlint
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
import { defineConfig } from 'oxlint';
export default defineConfig({
plugins: ['import'],
});
What happened?
Repro: link
import { lib } from './module.ts';
console.log(lib['~unstable']); // reported
lib['~unstable'] is reported by import(namespace) (Unable to validate computed reference to imported namespace "lib"). This report is silenced by an additional import line:
import { otherExport } from './module.ts'; console.log(otherExport);
import { lib } from './module.ts';
console.log(lib['~unstable']); // not reported
Unless I misconfigured and misunderstood eslint, nothing should be reported in both cases, as lib is a named import, not a namespace import.
What version of Oxlint are you using?
1.72.0
What command did you run?
oxlintWhat does your
.oxlintrc.json(oroxlint.config.ts) config file look like?What happened?
Repro: link
lib['~unstable']is reported byimport(namespace)(Unable to validate computed reference to imported namespace "lib"). This report is silenced by an additional import line:Unless I misconfigured and misunderstood
eslint, nothing should be reported in both cases, aslibis a named import, not a namespace import.