Skip to content

Commit fe08df3

Browse files
fix oxlint (#288)
1 parent bd7aeff commit fe08df3

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
@@ -66,7 +66,7 @@ We're thrilled to introduce agentic planning on GitHub for CodeRabbit chat as Ge
6666

6767
We've expanded our static analysis capabilities with two new tools:
6868

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

7272
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.
@@ -124,6 +124,10 @@ We're thrilled to introduce agentic planning on GitHub for CodeRabbit chat as an
124124
We are continually expanding our support for static analysis tools. We've recently added support for:
125125

126126
- SQLFluff
127+
- Added oxlint for faster linting
128+
- oxlint is a blazingly fast JavaScript/TypeScript linter written in Rust
129+
- Replaces ESLint for basic linting while maintaining ESLint for more complex rules
130+
- Up to 50-100x faster than traditional ESLint
127131

128132
## February 25, 2025
129133

‎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)