Fix mismatched refs lint suppression scope in useTabular

Open Beginner friendly
#2,199 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
92/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend, tooling

Research direction

Open packages/graph-explorer/src/components/Tabular/useTabular.ts around lines 427 and 435, then compare the rule names with the react-compiler configuration in .oxlintrc.json at lines 99 and 120. Update the mismatched re-enable directive and run the relevant Oxlint check to confirm the suppression ends after the react-table options object.

Written by the indexing model from the issue text.

Description

Description

packages/graph-explorer/src/components/Tabular/useTabular.ts:427 opens a block disable for react-compiler/refs, but the matching re-enable at :435 names react-hooks/refs — a namespace that is not loaded (the jsPlugin is named react-compiler in .oxlintrc.json:99, and the rule is enabled at :120). Oxlint pairs disable/enable directives by rule name, so the re-enable never matches and the disable leaks to the end of the file. react-compiler/refs therefore stays off for everything after the react-table options object.

Proposed change

Change the re-enable at :435 to /* oxlint-enable react-compiler/refs */, scoping the suppression to the options object. There are no .current reads after :435, so no new violations appear.

Affected

  • packages/graph-explorer/src/components/Tabular/useTabular.ts:427,435

[!IMPORTANT]
If you are interested in working on this issue, please leave a comment.

[!TIP]
Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.

[!NOTE]
A maintainer will need to set this issue's type to Task; external contributors cannot set issue types.

Dominant language
TypeScript
Stars
481
Forks
110
Avg merge
2d 14h
Merged PRs (30d)
9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/graph-explorer

All issues in aws/graph-explorer

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.