Skip to content

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Aug 18, 2025

#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.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Aug 18, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@overlookmotel overlookmotel marked this pull request as ready for review August 18, 2025 12:05
Copilot AI review requested due to automatic review settings August 18, 2025 12:05
Copy link
Contributor

Copilot AI left a 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.

@overlookmotel overlookmotel force-pushed the 08-18-refactor_napi_oxlint2_fix_lint_errors branch from b988d03 to 2f7091f Compare August 18, 2025 12:56
graphite-app bot pushed a commit that referenced this pull request Aug 18, 2025
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.
@overlookmotel
Copy link
Member Author

Cam already reviewed, and I've addressed his feedback, so merging.

@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Aug 19, 2025
Copy link
Member Author

overlookmotel commented Aug 19, 2025

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.
@graphite-app graphite-app bot force-pushed the 08-18-refactor_napi_oxlint2_fix_lint_errors branch from 2f7091f to c26d303 Compare August 19, 2025 15:07
@graphite-app graphite-app bot merged commit c26d303 into main Aug 19, 2025
16 checks passed
@graphite-app graphite-app bot deleted the 08-18-refactor_napi_oxlint2_fix_lint_errors branch August 19, 2025 15:13
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants