Oxlint
A fast JavaScript linter written in Rust
A fast JavaScript linter written in Rust
Oxlint is an ultra-fast JavaScript/TypeScript linter written in Rust. As part of the Oxc (Oxidation Compiler) project, it aims to deliver extreme performance by rewriting tools of the JavaScript ecosystem in Rust. It analyzes code for potential bugs, style violations, and security vulnerabilities, helping you write safer and more consistent code.
Oxlint is one of the core tools of the Oxc project. Oxc is an ambitious project that implements a parser, linter, formatter, transpiler, and minifier for JavaScript/TypeScript in Rust; each tool can be used independently, yet they deliver the best performance when integrated together. Oxlint takes on the role of the linter among them, and leverages the fast AST parsing speed of the Oxc parser.
The biggest advantage of Oxlint is its overwhelming performance. It boasts speeds 50 to 100 times faster than ESLint, and even large projects with thousands of files finish linting in under 1 second. This is thanks to Rust's zero-cost abstractions, memory safety, and parallel processing optimization. In CI/CD pipelines, linting time drops from several minutes to a few seconds, greatly improving development productivity.
When adopting it in practice, it is recommended to use Oxlint as a complement to ESLint rather than as a complete replacement. A hybrid strategy is effective: run Oxlint first to quickly catch basic errors, and handle checks that require special plugins with ESLint. As of 2025, it supports more than 400 lint rules, and is gradually porting rules from major plugins such as ESLint, TypeScript-ESLint, Jest, Unicorn, Import, React, and JSX-a11y.
// oxlint.json - Oxlint 설정 파일 (선택적)
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"rules": {
// ESLint 규칙
"no-unused-vars": "warn",
"no-console": "warn",
"eqeqeq": "error",
// TypeScript 규칙
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "warn",
// React 규칙
"react/no-direct-mutation-state": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// Import 규칙
"import/no-cycle": "error",
"import/no-self-import": "error",
// 접근성 규칙
"jsx-a11y/alt-text": "warn",
"jsx-a11y/anchor-is-valid": "warn"
},
"settings": {
"jsx-a11y": {
"polymorphicPropName": "as"
}
},
"ignorePatterns": ["dist", "node_modules", "*.config.js"]
}
// 터미널 명령어
// 1. 설치
npm install -D oxlint
// 2. 전체 프로젝트 린팅
npx oxlint
// 3. 특정 디렉토리만 린팅
npx oxlint ./src
// 4. 설정 파일 지정
npx oxlint -c oxlint.json
// 5. 특정 규칙만 활성화 (카테고리 단위)
npx oxlint -D correctness -D suspicious -D perf
// 6. 자동 수정 가능한 문제 수정
npx oxlint --fix
// 7. 출력 형식 지정 (CI용)
npx oxlint --format github
// 8. ESLint와 함께 사용 (package.json scripts)
"scripts": {
"lint": "oxlint && eslint . --ext .ts,.tsx",
"lint:fast": "oxlint",
"lint:full": "eslint . --ext .ts,.tsx"
}
"Running ESLint in CI takes over 3 minutes, but if we run Oxlint first, we can catch most errors in 1 second. If we keep ESLint only for the special plugins that Oxlint doesn't support and switch basic linting to Oxlint, PR feedback time should drop significantly."
"Oxlint is the linter of the Oxc project, written in Rust, and is 50 to 100 times faster than ESLint. It doesn't support every ESLint plugin yet, but the rules in the correctness and suspicious categories let us find bugs quickly, so using it alongside ESLint greatly improves the development experience."
"The lint job in GitHub Actions was a bottleneck, but after switching to Oxlint, the total CI time dropped from 5 minutes to 2 minutes. Since it runs on every PR, it runs dozens of times a day, so across the whole development team the total waiting time saved is enormous. It could be used right away with almost no configuration, so the adoption cost was also low."
"Adding the 'import/no-cycle': 'error' setting in oxlint.json is nice. It's effective for preventing circular dependency bugs. But I think we could raise 'typescript/no-explicit-any' from warn to error. There's hardly any any in the current code, so being strict about it shouldn't be a problem. Also, if we add the --format github option in CI, lint errors show up as inline annotations on the PR, which makes reviewing easier."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Oxlint does not support all ESLint rules and plugins. Some rules of eslint-plugin-import, custom plugins, and the like are not yet supported. Check the official rule support status page before adopting it.
Oxlint does not read .eslintrc.js. You must use a separate oxlint.json configuration file or specify rules via CLI options. Most rules are appropriately configured by default, so it can be used right away without any configuration.
Run Oxlint first to get quick feedback, and configure ESLint to check only the rules that Oxlint does not cover. In CI, combining them in the form `oxlint && eslint --rule '{...}'` lets you get both speed and coverage.