oxlint
Skill2 starsChanged 8 months agoMITView on GitHub
Run and configure oxlint — the high-performance JavaScript/TypeScript linter built on the Oxc compiler stack. Use this skill whenever working in a project that has oxlint installed (check for `oxlint` in package.json devDependencies or an `.oxlintrc.json` / `oxlint.config.ts` config file). This includes when you need to lint code after making changes, fix linting errors, configure oxlint rules/plugins, set up or modify `.oxlintrc.json`, or migrate from ESLint.
- Installs packages
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/mcp/meta-prompter/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- a2a-js-devSkill
- adr-authorSkill
- animejsSkill
- inktuiSkill
- ladybugdbSkill
- oxfmtSkill
- tauri-v2Skill
- telegram-botSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Before linting, confirm the project uses oxlint by checking for any of:
- Distinctive: line 18
If none of these exist, the project doesn't use oxlint — don't run it.
- Distinctive: line 23
Run oxlint to check your work.
- Very specific: line 38
Use --fix for safe automatic fixes.
- Distinctive: line 41
After editing only a few files, you can lint just those:
- Distinctive: line 48
Read the diagnostic message carefully — oxlint gives precise, actionable information
- Very specific: line 50
Only add // oxlint-ignore comments as a last resort when the diagnostic is a genuine false positive
- Very specific: line 208
Use oxlint-ignore (not eslint-disable) — oxlint recognizes both, but prefer its native syntax.
- Distinctive: line 212
If the project is moving from ESLint to oxlint:
- Distinctive: line 218
Add it as the last plugin in your ESLint config.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Oxlint — High-Performance JS/TS Linter
Oxlint is 50-100x faster than ESLint. It ships with 690+ rules covering ESLint core, TypeScript, React, Jest, Unicorn, jsx-a11y, and more. It prioritizes high-signal correctness checks by default — things that are incorrect, unsafe, or useless — so teams can adopt it without drowning in false positives.
Detection
Before linting, confirm the project uses oxlint by checking for any of:
oxlintinpackage.jsondevDependencies/dependencies- An
.oxlintrc.jsonfile in the project root - An
oxlint.config.tsfile in the project root - An
oxlintorlintscript inpackage.jsonthat referencesoxlint
If none of these exist, the project doesn't use oxlint — don't run it.
Running Oxlint
After code changes
Run oxlint to check your work. Prefer the project's npm script if one exists:
# If package.json has a lint script using oxlint
npm run lint
# Otherwise, run directly
npx oxlintFixing issues automatically
npx oxlint --fixUse --fix for safe automatic fixes. Avoid --fix-dangerously unless the user explicitly asks for it — it can apply unsafe transformations.
Linting specific files
After editing only a few files, you can lint just those:
npx oxlint src/components/Button.tsx src/utils/helpers.tsInterpreting output
Oxlint prints diagnostics with rule names in parentheses, e.g. (no-unused-vars). When fixing:
- Read the diagnostic message carefully — oxlint gives precise, actionable information
- Fix the underlying code issue rather than suppressing the rule
- Only add
// oxlint-ignorecomments as a last resort when the diagnostic is a genuine false positive
Output formats
For CI or tooling integration:
npx oxlint --format json # Machine-readable JSON
npx oxlint --format github # GitHub Actions annotations
npx oxlint --format unix # Simple one-line-per-error formatConfiguration
Creating a config
npx oxlint --initThis generates an .oxlintrc.json starter config.
Config file format (.oxlintrc.json)
The config uses JSONC (JSON with comments). Key sections:
{
// Enable/disable individual rules with severity levels
"rules": {
"no-unused-vars": "error",
"no-console": "warn",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
},
// Enable groups of related rules by category
"categories": {
"correctness": "error", // Definitely-wrong code
"suspicious": "warn", // Probably-wrong code
"pedantic": "off", // Opinionated style checks
"perf": "warn", // Performance anti-patterns
"style": "off", // Cosmetic preferences
"restriction": "off", // Extra-strict rules (opt-in)
"nursery": "off" // Unstable/experimental rules
},
// Plugins to enable (setting this overwrites defaults, so list all you want)
"plugins": ["typescript", "unicorn", "oxc"],
// File-specific overrides
"overrides": [
{
"files": ["**/*.test.{ts,tsx}"],
"rules": { "no-console": "off" }
},
{
"files": ["scripts/**"],
"rules": { "no-console": "off" }
}
],
// Environment globals
"env": {
"browser": true,
"node": true
},
// Plugin-wide settings
"settings": {
"react": {
"linkComponents": [{ "name": "Link", "linkAttribute": "to" }]
},
"jsx-a11y": {
"components": { "Link": "a", "Button": "button" }
}
},
// Type-aware linting (requires tsconfig)
"options": {
"typeAware": true
}
}Rule severity levels
"off"/"allow"— Disable the rule"warn"— Report but don't fail the build"error"/"deny"— Report and exit non-zero
Unique rule names can omit plugin prefix: "no-console" = "eslint/no-console".
Categories
Categories group rules by intent. The recommended starting point:
correctness: "error"— Always on. Catches real bugs.suspicious: "warn"— Good signal, occasionally noisy.- Everything else: enable incrementally as the team is ready.
Available plugins
Enabled by default: typescript, unicorn, oxc
Opt-in (CLI flags or config):
| Plugin | CLI flag | Purpose |
| react | --react-plugin | React-specific rules |
| jsx-a11y | --jsx-a11y-plugin | Accessibility rules for JSX |
| nextjs | --nextjs-plugin | Next.js best practices |
| import | --import-plugin | Import/export validation |
| jest | --jest-plugin | Jest testing rules |
| vitest | --vitest-plugin | Vitest testing rules |
| jsdoc | --jsdoc-plugin | JSDoc documentation rules |
| node | --node-plugin | Node.js-specific rules |
| promise | --promise-plugin | Promise best practices |
| react-perf | --react-perf-plugin | React performance rules |
| vue | --vue-plugin | Vue.js rules |
To disable a default plugin: --disable-typescript-plugin, --disable-unicorn-plugin, --disable-oxc-plugin.
Extending shared configs
{
"extends": ["./configs/base.json", "./configs/frontend.json"]
}Later entries override earlier ones. Paths resolve relative to the declaring config.
Monorepo support
Oxlint supports nested configs. Each directory can have its own .oxlintrc.json that overrides parent settings. Disable with --disable-nested-config if unwanted.
CLI Quick Reference
| Flag | What it does |
-c, --config=PATH | Use a specific config file |
--tsconfig=PATH | TypeScript config for path aliases |
--fix | Auto-fix safe issues |
--fix-suggestions | Also apply suggested fixes |
-A, --allow=RULE | Suppress a rule (e.g., -A no-console) |
-W, --warn=RULE | Warn on a rule |
-D, --deny=RULE | Error on a rule |
--quiet | Suppress warnings, show only errors |
--deny-warnings | Treat warnings as errors (exit non-zero) |
--max-warnings=N | Fail if more than N warnings |
-f, --format=FMT | Output format: default, json, github, unix, etc. |
--ignore-pattern=PAT | Exclude files matching pattern |
--type-aware | Enable type-informed rules (needs tsconfig) |
--print-config | Show resolved config (useful for debugging) |
--rules | List all available rules |
Categories can also be used with -A/-W/-D:
npx oxlint -D correctness -W suspicious -A pedanticSuppressing rules inline
// oxlint-ignore no-console -- needed for debug logging
console.log(debugInfo);
// oxlint-ignore-next-line no-unused-vars
const _placeholder = computeValue();Use oxlint-ignore (not eslint-disable) — oxlint recognizes both, but prefer its native syntax.
Migrating from ESLint
If the project is moving from ESLint to oxlint:
- Side-by-side approach — Run both linters, with
eslint-plugin-oxlintdisabling rules that oxlint already covers:
Add it as the last plugin in your ESLint config.npm install -D eslint-plugin-oxlint - Full replacement — Use
@oxlint/migrateto convert your ESLint config:
This generates annpx @oxlint/migrate.oxlintrc.jsonfrom your existing ESLint configuration.
Supported file types
.js, .mjs, .cjs, .ts, .mts, .cts, .jsx, .tsx, .vue, .svelte, .astro
For .vue, .svelte, and .astro files, oxlint lints only the <script> blocks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

