-
-
Notifications
You must be signed in to change notification settings - Fork 943
linter: Error occurs when checking type in jsplugin definition function #14745
Copy link
Copy link
Closed
Labels
A-linterArea - LinterArea - Linter
Description
What version of Oxlint are you using?
1.23.0
What command did you run?
npx tsc
What does your .oxlintrc.json config file look like?
What happened?
Error occurs when checking type in jsplugin definition function.
Comment out the line below added in version 1.21.0 and the type check error will disappear.
oxc/apps/oxlint/src-js/generated/visitor.d.ts
Line 383 in 6e061f6
| [key: string]: (node: ESTree.Node) => void; |
plugin.ts
import { defineRule } from "oxlint";
defineRule({
createOnce(context) {
return {
Program(node) {},
};
},
});package.json
{
"devDependencies": {
"oxlint": "1.23.0",
"typescript": "5.9.3"
}
}tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"moduleResolution": "bundler",
"strict": true,
"skipLibCheck": true
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Linter
Type
Fields
Give feedbackPriority
None yet
Effort
None yet
{}