What version of Oxlint are you using?
1.18.0
What command did you run?
npx oxlint
What does your .oxlintrc.json config file look like?
What happened?
oxc emits oxc(eslint(vars-on-top)) for
declare global {
var __CUSTOM_FLAG__: boolean | undefined;
}
but this needs to be var.
If we use let instead,
declare global {
let __CUSTOM_FLAG__: boolean | undefined;
}
TypeScript reports
Property '__CUSTOM_FLAG__' does not exist on type 'typeof globalThis'.ts(2339)
when accessing
globalThis.__CUSTOM_FLAG__
{ "categories": { "style": "deny" } }