Set up oxlint in a project using `@jabraf/dev`'s shared base config, either on its own or alongside ESLint. Load when the user asks to add oxlint, set up `oxlint.config.ts` / `.oxlintrc.json`, speed up linting with oxlint, or wire up `@jabraf/dev` oxlint specifically.
Ships in jabraf-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
jabraf-oxlintAdds oxlint to the current project
by re-exporting baseOxlintConfig from
@jabraf/dev. The base config:
eslint, typescript, unicorn, oxc and react (incl. React Hooks) pluginscorrectness category to errordist, build, and node_modulesFor customisation the package also exposes a createBaseOxlintConfig() factory.
baseOxlintConfig is simply createBaseOxlintConfig() with defaults. oxlint
itself ships as a dependency of @jabraf/dev.
The canonical setup snippet lives in
packages/jabraf-dev/README.md.
If this file and the README disagree, trust the README.
Load when the user's prompt mentions any of:
oxlint.config", ".oxlintrc"@jabraf/dev oxlint", "jabraf oxlint"Do not load for Biome or other non-oxlint tools. For ESLint-only setup, load
jabraf-eslint. When the user wants both, run jabraf-eslint first, then this
skill.
Each numbered step is one agent message. Steps marked [wait for user] require a user response.
Brief acknowledge + mode. One sentence: "I'll add oxlint via @jabraf/dev.
That's: detect package manager, install the dep if missing, write
oxlint.config.ts, add a lint script, validate." Then ask which mode:
eslint.config.* exists): oxlint runs first, ESLint skips rules oxlint covers.[wait for user]
Detect package manager. pnpm-lock.yaml → pnpm; yarn.lock → yarn; package-lock.json → npm. If none, default to npm and say so. If multiple, ask. [wait for user if ambiguous]
Detect existing config. Check for oxlint.config.{ts,mts,js,mjs}, .oxlintrc.json, .oxlintrc.jsonc. If found, show contents and ask: "Replace with the @jabraf/dev re-export, leave it alone, or keep both?" [wait for user] Never overwrite silently.
Install @jabraf/dev if missing. Dev dep, at latest:
npm install --save-dev @jabraf/devyarn add --dev @jabraf/devpnpm add --save-dev @jabraf/devIf the project has its own direct oxlint dep, leave it, but note that @jabraf/dev pins oxlint ~1.90 to match eslint-plugin-oxlint.
Write oxlint.config.ts at the project root:
import baseOxlintConfig from '@jabraf/dev/oxlint';
export default baseOxlintConfig;
For a non-React project, or to add plugins/rules on top of the base, use the factory:
import { createBaseOxlintConfig } from '@jabraf/dev/oxlint';
export default createBaseOxlintConfig({
react: false,
plugins: ['vitest'],
categories: { suspicious: 'warn' },
rules: { 'no-console': 'warn' },
});
Factory options (all optional):
| Option | Type | Default | Notes |
|---|---|---|---|
ignores | string[] | [] | Extra globs appended to the built-in ignores |
react | boolean | true | react plugin (React + Hooks); false to drop it |
plugins | string[] | [] | Extra built-in oxlint plugins (deduped) |
categories | OxlintConfig['categories'] | { correctness: 'error' } | Category severities merged over the default |
globals | OxlintConfig['globals'] | {} | Extra globals |
rules | OxlintConfig['rules'] | {} | Rules applied on top of the base config |
overrides | OxlintConfig['overrides'] | [] | Per-file overrides |
TS config files are an experimental oxlint feature (requires running via Node, which npx oxlint does). If it fails to load, fall back to .oxlintrc.json with the output of npx oxlint --print-config and tell the user.
Alongside ESLint only: update eslint.config.*. Switch the ESLint config to the factory with oxlint: true so ESLint skips rules oxlint already enforces:
import { createBaseEslintConfig } from '@jabraf/dev/eslint';
export default createBaseEslintConfig({ oxlint: true });
Keep any existing factory options (react, ignores, rules, ...). If the oxlint config is customised, pass that same object instead of true. Show the diff and confirm. [wait for user]
Add scripts. Only if absent (or confirm the change):
"lint": "oxlint ." (or oxlint src when source lives under src/)"lint": "oxlint src && eslint src" (oxlint first for fast feedback)[wait for user if conflict]
lint-staged (if configured). If .lintstagedrc* re-exports @jabraf/dev/lint-staged, offer to switch to createBaseLintStagedConfig({ linter: 'both' }) (or 'oxlint' for oxlint only). See jabraf-lint-staged. [wait for user]
Validate. Run <pm> run lint. Report:
no-unsafe-optional-chaining). Do not auto-fix.Final report. Summarize: mode, package manager, install status, config file(s) written/changed, scripts added, lint-staged change, validation outcome.
package.json scripts without confirmation.@jabraf/dev to a specific version — install at latest.oxlint --fix as part of setup. Validation is read-only.| Situation | Action |
|---|---|
Project has no package.json | Stop. Ask the user to initialise the project first (npm init -y). |
| Oxlint only, React project | Note that oxlint's React Hooks coverage is narrower than eslint-plugin-react-hooks (e.g. rules-of-hooks); suggest "alongside". |
ESLint config not from @jabraf/dev | Can't use oxlint: true. Suggest adding eslint-plugin-oxlint manually, or running jabraf-eslint first. [wait for user] |
Monorepo (workspaces present) | Ask whether to add at the root, a specific workspace, or each workspace. [wait for user] Repeat steps 3–9 per location. |
| Network/install failure | Surface the package manager error verbatim and stop. Do not retry silently. |
@jabraf/dev oxlint docs: packages/jabraf-dev/README.md#oxlint@jabraf/dev/oxlint → ./dist/config/code-linting/oxlint.base.js (see packages/jabraf-dev/package.json exports map)createBaseOxlintConfig (factory) and baseOxlintConfig (named and default).createBaseEslintConfig({ oxlint }) from @jabraf/dev/eslint, via eslint-plugin-oxlint.createBaseLintStagedConfig({ linter: 'oxlint' | 'both' }), lintStagedCommands.oxlint.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/jabraf-skills:jabraf-oxlintfrom jabraf-skills
npx claudepluginhub jabranr/skills --plugin jabraf-skills17 skills in this plugin
/jabraf-app-config-setupSet up `@jabraf/app-config` end-to-end in a project — install the runtime dep, scaffold `config/make-config.ts`, augment the `FeatureMap`, gitignore the generated artifact, add `prebuild`/`predev` scripts, wire the bootstrap `setConfig` call, and (React apps) mount the in-app `FeatureFlagsPanel` toggle UI. Load when the user asks to add app config, set up feature flags, configure `@jabraf/app-config`, wire `jabraf-config build`, or add a feature flags toggle panel / floating button./jabraf-commitlintSet up commitlint in a project using `@jabraf/dev`'s shared base (conventional commits). Load when the user asks to add commitlint, enforce conventional commits, configure `commitlint.config.js`, or wire up `@jabraf/dev` commitlint specifically. Do not load for general commit-message-quality questions unrelated to `@jabraf/dev`./jabraf-