-
-
Notifications
You must be signed in to change notification settings - Fork 723
refactor(napi/oxlint2): fix lint errors #13184
New issue
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
refactor(napi/oxlint2): fix lint errors #13184
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes linting errors flagged by Oxlint in the napi/oxlint2 directory as part of enabling Oxlint across the entire repository. The changes address various TypeScript ESLint rule violations and improve type safety.
- Added oxlint disable comments to suppress specific rule violations
- Updated type definitions to be more specific and meaningful
- Fixed JSDoc documentation format issues
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| napi/oxlint2/test/compile-visitor.test.ts | Added oxlint disable comments and updated test node objects to have proper AST node structure |
| napi/oxlint2/src-js/visitor.ts | Added oxlint disable comment for no-implied-eval rule around Function constructor usage |
| napi/oxlint2/src-js/utils.ts | Added oxlint disable comment for unused parameter in assertion function |
| napi/oxlint2/src-js/types.ts | Changed Node type from generic Object to structured AST node with required properties |
| napi/oxlint2/src-js/index.ts | Fixed JSDoc tag from @constructor to @class |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
b988d03 to
2f7091f
Compare
Same as #13184. #13173 enabled Oxlint for all the repo, but we currently skip `napi` directory. Fix all errors that Oxlint flags in `napi/parser`. We currently can't turn on Oxlint for the directory, because `oxlint-disable` comments don't work for type-aware rules, but we should be able to once that's fixed.
|
Cam already reviewed, and I've addressed his feedback, so merging. |
Merge activity
|
#13173 enabled Oxlint for all the repo, but we currently skip `napi` directory. Fix all errors that Oxlint flags in `napi/oxlint2`. We currently can't turn on Oxlint for the directory, because `oxlint-disable` comments don't work for type-aware rules, but we should be able to once that's fixed.
2f7091f to
c26d303
Compare

#13173 enabled Oxlint for all the repo, but we currently skip
napidirectory.Fix all errors that Oxlint flags in
napi/oxlint2.We currently can't turn on Oxlint for the directory, because
oxlint-disablecomments don't work for type-aware rules, but we should be able to once that's fixed.