Skip to content

Commit c544388

Browse files
fix oxlint
1 parent 3bd4372 commit c544388

File tree

4 files changed

+56
-52
lines changed

4 files changed

+56
-52
lines changed

docs/changelog.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ We're thrilled to introduce agentic planning on GitHub for CodeRabbit chat as Ge
4646

4747
We've expanded our static analysis capabilities with two new tools:
4848

49-
- **OXC**: A high-performance JavaScript/TypeScript linter written in Rust.
49+
- **oxlint**: A high-performance JavaScript/TypeScript linter written in Rust.
5050
- **Prisma Lint**: A dedicated linter for Prisma schema files to help enforce consistent conventions and best practices.
5151

5252
Both tools can be configured through their respective config files or through CodeRabbit's settings page. See our [tools documentation](https://docs.coderabbit.ai/tools/) for more details.
@@ -104,6 +104,10 @@ We're thrilled to introduce agentic planning on GitHub for CodeRabbit chat as an
104104
We are continually expanding our support for static analysis tools. We've recently added support for:
105105

106106
- SQLFluff
107+
- Added oxlint for faster linting
108+
- oxlint is a blazingly fast JavaScript/TypeScript linter written in Rust
109+
- Replaces ESLint for basic linting while maintaining ESLint for more complex rules
110+
- Up to 50-100x faster than traditional ESLint
107111

108112
## February 25, 2025
109113

docs/tools/oxc.md

-46
This file was deleted.

docs/tools/oxlint.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: oxlint
3+
sidebar_label: oxlint
4+
description: CodeRabbit's guide to oxlint.
5+
---
6+
7+
```mdx-code-block
8+
import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx';
9+
10+
<ProPlanNotice />
11+
```
12+
13+
[oxlint](https://github.com/oxc-project/oxc) is a blazingly fast JavaScript/TypeScript linter written in Rust that is 50-100x faster than ESLint.
14+
15+
## Files
16+
17+
oxlint will run on files with the following extensions:
18+
19+
- `.js`
20+
- `.jsx`
21+
- `.ts`
22+
- `.tsx`
23+
24+
## Configuration
25+
26+
oxlint supports the following config files:
27+
28+
- `oxlint.json`
29+
- `.oxlintrc`
30+
- `.oxlintrc.json`
31+
- `oxlint.config.json`
32+
33+
:::note
34+
35+
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. If Biome is not enabled or an oxlint config file is found, CodeRabbit will use the default oxlint config.
36+
37+
:::
38+
39+
## Rule Configuration
40+
41+
While oxlint embraces convention over configuration, you can customize rules in your config file if needed. The config file should be in JSON format. See the [oxlint documentation](https://oxc-project.github.io) for more details on available rules and configuration options.
42+
43+
## Links
44+
45+
- [oxlint GitHub Repository](https://github.com/oxc-project/oxc)
46+
- [oxlint Website](https://oxc.rust-server.org)

docs/tools/tools.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Remove extraneous f prefix
5757
| GitLab Pipelines | [Pipeline Remediation][Pipeline] | CI/CD Failure Remediation |
5858
| Go | [golangci-lint][golangci-lint] | Code Quality |
5959
| Helm | [Checkov][Checkov] | Code Security |
60-
| Javascript | [Biome][Biome], [OXC][OXC] | Code Quality |
60+
| Javascript | [Biome][Biome], [oxlint][oxlint] | Code Quality |
6161
| JSON, JSONC | [Biome][Biome] | Code Quality |
62-
| JSX | [Biome][Biome], [OXC][OXC] | Code Quality |
62+
| JSX | [Biome][Biome], [oxlint][oxlint] | Code Quality |
6363
| Kotlin | [detekt][detekt] | Code Quality |
6464
| Kubernetes | [Checkov][Checkov] | Code Security |
6565
| Markdown | [markdownlint][markdownlint], [LanguageTool][LanguageTool] | Code Quality, Grammar Checking |
@@ -76,8 +76,8 @@ Remove extraneous f prefix
7676
| SQL | [SQLFluff][SQLFluff] | Code Quality |
7777
| Swift | [SwiftLint][SwiftLint] | Code Quality |
7878
| Terraform | [Checkov][Checkov] | Code Security |
79-
| TSX | [Biome][Biome], [OXC][OXC] | Code Quality |
80-
| Typescript | [Biome][Biome], [OXC][OXC] | Code Quality |
79+
| TSX | [Biome][Biome], [oxlint][oxlint] | Code Quality |
80+
| Typescript | [Biome][Biome], [oxlint][oxlint] | Code Quality |
8181
| YAML | [YAMLlint][YAMLlint] | Code Quality |
8282
| Prisma | [Prisma Lint][PrismaLint] | Code Quality |
8383

@@ -105,5 +105,5 @@ Remove extraneous f prefix
105105
[Semgrep]: ./semgrep.md
106106
[Pipeline]: ./pipeline-remediation.md
107107
[PrismaLint]: ./prisma-lint.md
108-
[OXC]: ./oxc.md
108+
[oxlint]: ./oxlint.md
109109
[ShopifyCLI]: ./shopify-cli.md

0 commit comments

Comments
 (0)