oxlint
Build, review, debug, configure, migrate, teach, or plan Oxlint JavaScript/TypeScript linting with current Oxc docs and a full usage guide. Use for oxlint how-to, oxlint.config.ts, defineConfig, .oxlintrc.json, categories correctness suspicious pedantic style, plugins react import typescript unicorn vitest jest jsx-a11y nextjs, React Compiler react/immutability react/purity (1.79+ split from react/react-compiler), type-aware linting, oxlint-tsgolint, eslint-plugin-oxlint, @oxlint/migrate, jsPlugins alpha, Vite+ vp lint (lint block in vite.config), ignorePatterns, oxlint-disable comments, --fix, --debug timings, CI formats, progressive adoption, and ESLint-to-Oxlint migration.
How do I install this agent skill?
npx skills add https://github.com/dobroslavradosavljevic/skills --skill oxlintIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides comprehensive instructions for using, configuring, and migrating to Oxlint. No malicious patterns or security risks were detected. All external references and package installations are standard for the tool's ecosystem.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Oxlint
Use this skill when work touches Oxlint or Oxc linting: install/config, day-to-day usage, rules/plugins, React Compiler lint rules, type-aware linting, ESLint coexistence or migration, editors, or CI.
Workflow
- Inspect the local Oxlint surface before changing code:
- Package versions for
oxlint, optionaloxlint-tsgolint,eslint-plugin-oxlint,@oxlint/migrate. - Config: prefer
oxlint.config.ts/.mtswithdefineConfig; also accept.oxlintrc.json(c)(one type per directory). - Remaining ESLint setup, ignore files, scripts (
lint/lint:fix), and editor Oxc settings. - Whether type-aware linting, JS plugins, or React Compiler rules are in play.
- Package versions for
- For setup, how-to, progressive adoption, diagnostics loops, baselines, or troubleshooting, follow the full guide first: usage-guide.md.
- Refresh current official docs when versions differ from the snapshot or the work touches type-aware, JS plugins, React Compiler, or migration. Start from source-map.md.
- Route deeper detail to the focused references:
- Install, CLI, config shape, nested configs, ignores: setup-cli-config.md.
- Categories, plugins, React Compiler, JS plugins, rules, inline ignores, type-aware: rules-plugins-typeaware.md.
- ESLint coexistence, migration, editors, CI: eslint-ci-editors.md.
- Preserve the repository's existing lint severity and plugin choices unless the user asks to migrate or expand coverage.
- Verify with the narrowest useful
bunx oxlint/bun run lintinvocation.
Core Judgment
- Default Oxlint enables only the
correctnesscategory. Turn on other categories and plugins deliberately. - Setting
plugins: [...]replaces the default plugin set. Re-listeslint,typescript,unicorn, andoxcwhen you still want them. - Prefer
oxlint.config.ts+defineConfigfor new configs (typed, shareable via imports). Keep or use.oxlintrc.jsononly when the project already has it, or when using a standalone binary without a Node runtime. CLI help still labels JS/TS config loading as experimental; official config docs treatoxlint.config.tsas first-class. - Nested configs do not auto-merge with parents — use
extends(TS: imported objects; JSON: relative paths).-c/--configdisables nested lookup. - Vite+ (
vp lint, Vite+ 1.0 pins a specific Oxlint) reads thelintblock invite.config.*; nested configs are always off in Vite+ mode (1.85+), so use rootlint.overrides. - Prefer
ignorePatternsin config over scattered ignore files for editor/CI consistency..gitignoreapplies to walk discovery; an explicitly named file is still linted. - Prefer
oxlint-disable*comments long-term;eslint-disable*still works while migrating (respectEslintDisableDirectivesdefault true). - Type-aware linting needs
oxlint-tsgolint+--type-aware/options.typeAware. Those options are root-only. Do not pass--tsconfigtogether with type-aware. - Keep
oxlintandeslint-plugin-oxlinton the same minor. Put oxlint flat configs last in ESLint so they disable overlapping rules. - JS plugins (
jsPlugins) are alpha and outside normal semver — avoid unless required. - React Compiler lint rules are experimental. Since 1.79 they are per-category
react/*rules (notreact/react-compiler). Enabling thereactplugin with defaultcorrectnessturns on the recommended compiler rules. Remove any leftoverreact/react-compilerentry. - Vue/Svelte/Astro/Angular: Oxlint covers script blocks only, not templates.
- Do not treat Oxlint as a formatter. Formatting belongs in a separate formatter tool (for example Oxfmt or Prettier).
Verification
Prefer repository-owned commands. For meaningful Oxlint work, cover the relevant subset:
bunx oxlint(or projectlintscript) on changed paths.bunx oxlint --fixwhen autofixes are expected; review remaining diagnostics.- Type-aware:
bunx oxlint --type-awareafter dependents are built so.d.tsexist. - CI-shaped run with
--deny-warningsor--max-warningswhen those gates are project policy. - After ESLint coexistence changes: run
oxlint && eslintand confirm no duplicate rule noise. - Editor/LSP smoke when changing Oxc extension settings or
options.typeAware. - After enabling the
reactplugin on 1.79+: confirm whether experimental compiler rules should stay on.
Report which checks ran, which did not, and any package-version, React Compiler, or type-aware assumptions that remain.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/dobroslavradosavljevic/skills/oxlint">View oxlint on skillZs</a>