Skip to content

chore: add rules page#259

Merged
hardfist merged 2 commits intomainfrom
add-rule-page
Aug 13, 2025
Merged

chore: add rules page#259
hardfist merged 2 commits intomainfrom
add-rule-page

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

@hardfist hardfist commented Aug 13, 2025

add rules page to track port status https://rslint.rs/rules

Copilot AI review requested due to automatic review settings August 13, 2025 17:47
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 13, 2025

Deploy Preview for rslint ready!

Name Link
🔨 Latest commit 1cb1c53
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/689cd2fe47a9c900083f2e70
😎 Deploy Preview https://deploy-preview-259--rslint.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.

Copy link
Copy Markdown
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 adds a rules page to the website to track the implementation status of ESLint rules being ported to rslint. The page displays an interactive table showing rule names, groups, implementation status, and failing test cases.

Key changes:

  • Creates a React component that fetches and displays rule manifest data
  • Updates the website icon from a banner to the SVG logo
  • Adds a new rules index page that renders the manifest component

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
website/rspress.config.ts Updates the website icon from PNG banner to SVG logo
website/docs/rules/rule-manifest.tsx Creates interactive React component for displaying rule implementation status with filtering and statistics
website/docs/rules/index.mdx Adds rules page entry point that imports and renders the manifest component

>
•{' '}
<a
href={`https://github.com/web-infra-dev/rslint/blob/main/${failingCase.url}`}
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

The GitHub URL is hardcoded. Consider extracting it as a constant or deriving it from the RULE_MANIFEST_URL to maintain consistency if the repository URL changes.

Suggested change
href={`https://github.com/web-infra-dev/rslint/blob/main/${failingCase.url}`}
href={`${GITHUB_BASE_URL}${failingCase.url}`}

Copilot uses AI. Check for mistakes.
transition: all 0.2s ease-in-out;
}
`}
</style>
Copy link

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

Inline styles in a <style> tag within a React component is not recommended. Consider using CSS modules, styled-components, or moving styles to a separate CSS file for better maintainability.

Suggested change
</style>

Copilot uses AI. Check for mistakes.
Comment thread website/docs/rules/rule-manifest.tsx
@hardfist hardfist closed this Aug 13, 2025
@hardfist hardfist reopened this Aug 13, 2025
@hardfist hardfist merged commit 0d24667 into main Aug 13, 2025
10 checks passed
@hardfist hardfist deleted the add-rule-page branch August 13, 2025 18:02
ScriptedAlchemy pushed a commit that referenced this pull request Aug 15, 2025
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.

2 participants