Skip to content

Proof of Concept: Better rules table#782

Merged
connorshea merged 18 commits intomainfrom
better-rules-table
Jan 14, 2026
Merged

Proof of Concept: Better rules table#782
connorshea merged 18 commits intomainfrom
better-rules-table

Conversation

@connorshea
Copy link
Member

@connorshea connorshea commented Jan 13, 2026

With more than 650 rules, the static rules table is rather unwieldy. I threw together this proof-of-concept for what we should consider implementing for a new one.

Requires the implementation of oxc-project/oxc#15763 (which is where I get rules.json from here).

It is not, currently, pretty. Maybe a candidate for integration with the rebrand PR? #736

Screenshot 2026-01-12 at 11 21 57 PM

AI Disclosure: The initial version of the page was built using help from GitHub Copilot, it is not intended as a final implementation and is basically just for ideating and iteration upon.

TODO:

  • Make it look better.
  • Text search for rule names?
  • Maybe fix the plugin names (e.g. jsx_a11y should be jsx-a11y)
  • Merge the source and name columns, so we have e.g. typescript/no-explicit-any instead of no-explicit-any with a separate plugin name?
  • Add some indicator in the table row for type-aware rules

Closes #318.

@netlify
Copy link

netlify bot commented Jan 13, 2026

Deploy Preview for oxc-project ready!

Name Link
🔨 Latest commit effc117
🔍 Latest deploy log https://app.netlify.com/projects/oxc-project/deploys/696783e1be63930008da3b5d
😎 Deploy Preview https://deploy-preview-782--oxc-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@connorshea connorshea changed the title Better rules table Proof of Concept: Better rules table Jan 13, 2026
@connorshea connorshea marked this pull request as draft January 13, 2026 05:37
@Boshen Boshen self-assigned this Jan 13, 2026
Copy link
Member

@Boshen Boshen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too long, just ship it :-)

Signed-off-by: Cameron <cameron.clark@hey.com>
graphite-app bot pushed a commit to oxc-project/oxc that referenced this pull request Jan 14, 2026
…17973)

This builds on #15763 to change the rules generation for the website repo to emit a JSON file. This will support oxc-project/website#782

I have removed the ability to have a link prefix for the generated markdown table, as it was only used for the generated-rules.md file.
@connorshea connorshea merged commit 4c0012c into main Jan 14, 2026
6 checks passed
@connorshea connorshea deleted the better-rules-table branch January 14, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linter: add filtering to the rules list

3 participants