-
-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Copy link
Labels
A-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
1.48.0
What command did you run?
oxlint --type-aware --type-check --deny-warnings --report-unused-disable-directives
What does your .oxlintrc.json config file look like?
What happened?
When linting file I get error typescript/no-use-before-define even though it should be disabled.
// Not relevant to the issue
// oxlint-disable-next-line typescript/explicit-function-return-type, typescript/explicit-module-boundary-types
export function someFunction() {
// 'someOtherFunction' was used before it was defined.
// help: Move the declaration before any references to it, or remove the reference if it is not
someOtherFunction();
}
// oxlint-disable-next-line typescript/explicit-function-return-type, no-empty-function
function someOtherFunction() {}Reproduction repo: https://github.com/rajzik/oxlint-repro
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter
{ "$schema": "./node_modules/oxlint/configuration_schema.json", "plugins": ["typescript"], "categories": { "correctness": "warn", "restriction": "warn" }, "env": { "builtin": true }, "rules": { "typescript/no-use-before-define": "allow" } }