Skip to content

fix oxlint #288

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix oxlint #288

wants to merge 1 commit into from

Conversation

alexcoderabbitai
Copy link
Collaborator

No description provided.

Copy link
Contributor

coderabbitai bot commented Apr 17, 2025

Walkthrough

This change updates documentation to rename the JavaScript/TypeScript linter tool from "OXC" to "oxlint" throughout the project. It updates the changelog to clarify the tool's branding and performance, replaces all references to "OXC" with "oxlint" in the supported tools documentation, deletes the old OXC documentation file, and introduces a new guide for oxlint with updated details and configuration instructions. No code or exported/public entities were altered.

Changes

File(s) Change Summary
docs/changelog.md Renamed "OXC" to "oxlint" in changelog entries; expanded description of oxlint and its role.
docs/tools/oxc.md Deleted the OXC documentation file.
docs/tools/oxlint.md Added new documentation file for oxlint, including usage, config, and links.
docs/tools/tools.md Updated tool references and links from "OXC" to "oxlint" in tables and footnotes.

Possibly related PRs

  • oxc and prisma-lint changelog #270: Introduced "OXC" as a new tool and added its initial documentation and changelog entry; the current PR directly builds upon and modifies these additions.

Poem

In docs we hop, we leap, we lint,
OXC is gone, oxlint’s the hint!
With Rusty speed, our code is clean,
Fifty times faster—what a machine!
So celebrate this bunny’s feat,
Our docs and tools are now elite.
🥕✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3bd4372 and c544388.

📒 Files selected for processing (4)
  • docs/changelog.md (2 hunks)
  • docs/tools/oxc.md (0 hunks)
  • docs/tools/oxlint.md (1 hunks)
  • docs/tools/tools.md (3 hunks)
💤 Files with no reviewable changes (1)
  • docs/tools/oxc.md
🧰 Additional context used
🪛 LanguageTool
docs/tools/oxlint.md

[uncategorized] ~35-~35: Possible missing comma found.
Context: ...e is enabled, CodeRabbit will use Biome instead as oxlint functionality is included wit...

(AI_HYDRA_LEO_MISSING_COMMA)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (9)
docs/changelog.md (1)

49-49: Consistent renaming and description update
The linter name has been correctly updated from “OXC” to “oxlint” and the short description aligns with the tool’s purpose.

docs/tools/tools.md (1)

60-60: References to oxlint added in the tools matrix
All occurrences of the previous “OXC” tool have been correctly replaced with [oxlint][oxlint] in the JavaScript, JSX, TSX, and Typescript rows. Links to the new documentation will resolve once the file is in place.

Also applies to: 62-62, 75-76

docs/tools/oxlint.md (7)

1-5: Front-matter metadata
The YAML front matter (title, sidebar_label, description) is correctly defined for Docusaurus.


7-11: ProPlan notice component
Importing and embedding <ProPlanNotice /> is consistent with other tool guides.


13-13: Verify introduction link
The link to the GitHub repo uses https://github.com/oxc-project/oxc. Please confirm this points to the current “oxlint” project (and not a legacy “OXC” repo).


17-23: Supported file extensions
The list of file extensions (.js, .jsx, .ts, .tsx) is clear and comprehensive.


26-32: Configuration file names
Documenting all supported config filenames is helpful. No changes needed here.


39-42: Rule Configuration section
The guidance on convention‑over‑configuration is clear. Please verify the external link to the official docs (https://oxc-project.github.io) is up to date.


44-47: Links section
The two links to the GitHub repo and website appear correctly formatted. Verify the URLs resolve as expected.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@alexcoderabbitai alexcoderabbitai enabled auto-merge (squash) April 17, 2025 20:07
Copy link

Deploying coderabbit-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: c544388
Status: ✅  Deploy successful!
Preview URL: https://7d79a8c4.coderabbit-docs.pages.dev
Branch Preview URL: https://fix-oxlint.coderabbit-docs.pages.dev

View logs

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Inline review comments failed to post. This is likely due to GitHub's limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 3

🧹 Nitpick comments (1)
docs/changelog.md (1)

107-110: Unify bullet styling for oxlint under Additional Static Analysis Support.

The nested bullets introduce oxlint details, but the top-level line uses “Added oxlint for faster linting” rather than listing the tool name consistently with other items. Consider mirroring the style from the “New Static Analysis Tools” section for clarity:

- - Added oxlint for faster linting
-   - oxlint is a blazingly fast JavaScript/TypeScript linter written in Rust
-   - Replaces ESLint for basic linting while maintaining ESLint for more complex rules
-   - Up to 50-100x faster than traditional ESLint
+ - **oxlint**: A blazingly fast JavaScript/TypeScript linter written in Rust  
+   - Replaces ESLint for basic linting while maintaining ESLint for more complex rules  
+   - Up to 50-100x faster than traditional ESLint
🛑 Comments failed to post (3)
docs/tools/tools.md (2)

60-60: 🛠️ Refactor suggestion

Fix JavaScript casing in table row.

The entry reads “Javascript” but the official spelling is “JavaScript” (capital “S”).

-| Javascript                  | [Biome][Biome], [oxlint][oxlint]                           | Code Quality                                        |
+| JavaScript                  | [Biome][Biome], [oxlint][oxlint]                           | Code Quality                                        |

80-80: 🛠️ Refactor suggestion

Fix TypeScript casing in table row.

The entry reads “Typescript” but the official spelling is “TypeScript” (capital “S”).

-| Typescript                  | [Biome][Biome], [oxlint][oxlint]                           | Code Quality                                        |
+| TypeScript                  | [Biome][Biome], [oxlint][oxlint]                           | Code Quality                                        |
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

| TypeScript                  | [Biome][Biome], [oxlint][oxlint]                           | Code Quality                                        |
docs/tools/oxlint.md (1)

7-11: ⚠️ Potential issue

Remove code fences to render ProPlanNotice.

The import and <ProPlanNotice /> are currently inside a code block, so they will render as literal code instead of embedding the notice. They should be placed in raw MDX.

- ```mdx-code-block
- import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
-
- <ProPlanNotice />
- ```
+ import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
+
+ <ProPlanNotice />

@alexcoderabbitai
Copy link
Collaborator Author

@coderabbitai full review

Copy link
Contributor

coderabbitai bot commented Apr 17, 2025

✅ Actions performed

Full review triggered.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Inline review comments failed to post. This is likely due to GitHub's limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 1

🧹 Nitpick comments (2)
docs/changelog.md (1)

107-110: Unify bullet style for additional static analysis tools
In the “Additional Static Analysis Support” list, items are presented as tool names (e.g., - SQLFluff). The entry - Added oxlint for faster linting mixes a verb with a tool name. For consistency, consider changing it to - oxlint and moving the performance details into the changelog entry or as sub‑bullets under “oxlint.”

docs/tools/oxlint.md (1)

33-37: Nit: add comma for readability
A comma would improve clarity in this sentence.
Apply this diff:

- oxlint does not require configuration to run. If no oxlint config file is found and Biome is enabled, CodeRabbit will use Biome instead as oxlint functionality is included within Biome.
+ oxlint does not require configuration to run. If no oxlint config file is found and Biome is enabled, CodeRabbit will use Biome instead, as oxlint functionality is included within Biome.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~35-~35: Possible missing comma found.
Context: ...e is enabled, CodeRabbit will use Biome instead as oxlint functionality is included wit...

(AI_HYDRA_LEO_MISSING_COMMA)

🛑 Comments failed to post (1)
docs/tools/tools.md (1)

108-108: 💡 Verification agent

🧩 Analysis chain

Verify removal of stale OXC references
Ensure that docs/tools/oxc.md has been deleted and that no lingering “OXC” references remain in the repo.


🏁 Script executed:

#!/usr/bin/env bash
# Search for any uppercase OXC references in the docs
rg -w "OXC" docs/

Length of output: 17


I've added checks to confirm the file’s deletion and look for any “oxc” references (case‑insensitive) across the repo:


🏁 Script executed:

#!/usr/bin/env bash
# Verify whether docs/tools/oxc.md still exists
if [ -e docs/tools/oxc.md ]; then
  echo "FOUND docs/tools/oxc.md"
else
  echo "docs/tools/oxc.md not found"
fi

# Search for any references to "oxc" (case-insensitive)
rg -i "oxc" .

Length of output: 735


Remove stale “oxc” references from docs/tools/oxlint.md
Although docs/tools/oxc.md has been deleted, there are still “oxc” mentions in the docs/tools/oxlint.md file—please update or remove them to match the new “oxlint” naming.

• docs/tools/oxlint.md: link text and URLs referencing “oxc” (e.g. GitHub repo and website links) should be renamed or updated.

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.

1 participant