oxlint
БесплатноБез исполняемых скриптовНе проверенLint JavaScript/TypeScript at blazing speed with oxlint — a Rust-based linter 50-100x faster than ESLint. Use when someone asks to "speed up linting"…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
oxlint
Overview
oxlint is a JavaScript/TypeScript linter written in Rust — 50-100x faster than ESLint. It runs without Node.js, handles thousands of files in milliseconds, and implements the most common ESLint rules (correctness, suspicious, pedantic). Use it alongside ESLint (for rules oxlint doesn't cover yet) or as a standalone fast linter for CI.
When to Use
- ESLint taking 30+ seconds in CI — oxlint runs in <1 second
- Large monorepos where linting is the CI bottleneck
- Want instant feedback in pre-commit hooks
- Need basic correctness checks without Node.js setup
- Transitioning from ESLint gradually
Instructions
Setup
# Per project (recommended): pins the version for everyone
npm install -D oxlint
# Standalone binary, no Node.js needed
brew install oxlint
npx oxlint --version # checked against 1.86.0
npx oxlint --init # writes a starter .oxlintrc.json
Basic Usage
npx oxlint # lint the current directory (respects .gitignore)
npx oxlint src/ tests/ # specific paths
npx oxlint --fix src/ # apply safe fixes only
npx oxlint --fix-suggestions src/ # also apply suggestions (may change behavior)
npx oxlint -D correctness -W suspicious . # categories on the command line
npx oxlint --deny-warnings . # warnings fail the build
npx oxlint -f github . # output format: default, github, gitlab, json, junit, sarif, stylish, unix, checkstyle
npx oxlint --rules # list registered rules
By default only the correctness category is enabled (as errors). Other categories are suspicious, pedantic, perf, style, restriction and nursery.
Configuration
Oxlint reads .oxlintrc.json (comments allowed), .oxlintrc.jsonc, or oxlint.config.ts (Node 22.18+ or 24+, npm package only) from the working directory. The format follows ESLint v8's eslintrc shape.
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "react", "import"],
"categories": { "correctness": "error", "suspicious": "warn" },
"rules": {
"eqeqeq": "error",
"no-var": "error",
"prefer-const": "warn",
"no-console": "warn",
"no-debugger": "error"
},
"overrides": [
{ "files": ["**/*.test.ts"], "rules": { "no-console": "off" } }
],
"ignorePatterns": ["dist/", "coverage/"]
}
Notes: setting plugins replaces the default list (typescript, unicorn, oxc), so list every plugin you want. Rules from non-core plugins are namespaced, for example "typescript/no-explicit-any": "warn" and "react/rules-of-hooks": "error". ignorePatterns complements .gitignore, which is honored automatically.
Type-aware rules
npm install -D oxlint-tsgolint@latest
npx oxlint --type-aware
Or set "options": { "typeAware": true } in the root config only. It covers most typescript-eslint type-aware rules (such as no-floating-promises) and needs resolvable types, so build workspace packages first in a monorepo.
Migrate from ESLint
npx @oxlint/migrate # converts an ESLint v9+ flat config to .oxlintrc.json
npx @oxlint/migrate --type-aware # keep typescript-eslint type-aware rules
ESLint v8 .eslintrc files must first be converted to a flat config. ESLint plugins that Oxlint lacks natively can be kept through jsPlugins (alpha). To run both linters during the transition:
{ "scripts": { "lint": "oxlint && eslint .", "lint:fast": "oxlint" } }
npm install -D eslint-plugin-oxlint
// eslint.config.js
import oxlint from "eslint-plugin-oxlint";
export default [
// ...your ESLint config
...oxlint.configs["flat/recommended"], // keep last: turns off rules Oxlint already runs
];
CI Integration
# .github/workflows/lint.yml
name: Lint
on: [pull_request]
permissions: {}
jobs:
oxlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm ci
- run: npx oxlint --deny-warnings
Oxlint switches to GitHub annotations automatically inside Actions. For GitLab use --format=gitlab > gitlab-oxlint-report.json as a Code Quality artifact.
Pre-commit Hook
npm install -D lint-staged
{ "lint-staged": { "*.{js,jsx,ts,tsx,mjs,cjs}": "oxlint --fix" } }
pre-commit users can use the https://github.com/oxc-project/mirrors-oxlint repository (hook id oxlint, pin rev to a release tag).
Examples
Example 1: Speed up CI linting
User prompt: "Our ESLint step takes 45 seconds in CI. Make it faster."
The agent installs oxlint, runs npx @oxlint/migrate to convert the flat config, adds eslint-plugin-oxlint so ESLint skips rules Oxlint covers, and changes the CI step to oxlint --deny-warnings && eslint .. The log shows Oxlint finishi
Установить oxlint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл oxlint?
Lint JavaScript/TypeScript at blazing speed with oxlint — a Rust-based linter 50-100x faster than ESLint. Use when someone asks to "speed up linting", "oxlint", "fast JavaScript linter", "replace ESLint", "Rust linter for JS", or "lint in CI faster". Covers rule configuration, ESLint migration, framework plugins, and CI integration.
Как установить скилл oxlint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл oxlint запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub