Set up ESLint in a project using `@jabraf/dev`'s shared base config. Load when the user asks to add ESLint, set up linting, configure `eslint.config.{js,ts}`, or wire up `@jabraf/dev` ESLint specifically. Do not load for general linter questions unrelated to `@jabraf/dev`.
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-eslintAdds ESLint to the current project by re-exporting baseEslintConfig from
@jabraf/dev. The base config
auto-ignores dist, build, and node_modules and bundles recommended rules
for JavaScript, TypeScript, React (@eslint-react,
with React version auto-detection), and React Hooks (eslint-plugin-react-hooks).
It targets ESLint 10 (flat config only).
It can also run alongside oxlint:
createBaseEslintConfig({ oxlint: true }) turns off ESLint rules oxlint
already covers. Oxlint itself is set up by the jabraf-oxlint skill.
For customisation (non-React projects, extra ignores, project rules, etc.) the
package also exposes a createBaseEslintConfig() factory. baseEslintConfig is
simply createBaseEslintConfig() with defaults.
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:
eslint.config"@jabraf/dev ESLint", "jabraf eslint"Do not load for non-ESLint static-analysis tools (Biome, etc.) or for general
"fix my lint errors" requests that don't involve @jabraf/dev. For oxlint-only
setup, load jabraf-oxlint instead; when the user wants both, load
jabraf-oxlint after this skill. Do not
load alongside jabraf-dev-setup — the umbrella will invoke this one.
Each numbered step is one agent message. Steps marked [wait for user] require a user response.
Brief acknowledge. One sentence: "I'll add ESLint via @jabraf/dev.
That's: detect package manager, install the dep if missing, write
eslint.config.ts (or .js), add a lint script, validate. Proceed?"
[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 any of eslint.config.{js,cjs,mjs,ts,mts,cts}, .eslintrc, .eslintrc.{js,cjs,json,yaml,yml}, or an eslintConfig field in package.json. If found, show the contents and ask: "An existing ESLint config was found. Replace with the @jabraf/dev re-export, leave it alone, or keep both?" [wait for user] Never overwrite silently. Legacy .eslintrc* files are not supported by ESLint 10 and conflict with the flat config from @jabraf/dev — flag this if detected and recommend deleting after the user confirms.
Install @jabraf/dev if missing. Check dependencies and devDependencies in package.json. If absent, install as a dev dep at latest:
npm install --save-dev @jabraf/devyarn add --dev @jabraf/devpnpm add --save-dev @jabraf/devChoose config file extension. Default to eslint.config.ts if the project already uses TypeScript (presence of typescript in deps or any tsconfig.json), otherwise eslint.config.js. Confirm the choice if you're not sure. Write it at the project root with this exact body:
import baseEslintConfig from '@jabraf/dev/eslint';
export default baseEslintConfig;
Both default and named (baseEslintConfig) exports are available; the default form above matches the README.
For a non-React project, or to add ignores/rules on top of the base, use the
createBaseEslintConfig() factory instead:
import { createBaseEslintConfig } from '@jabraf/dev/eslint';
export default createBaseEslintConfig({
react: false,
ignores: ['coverage'],
rules: { 'no-console': 'warn' },
});
Factory options (all optional):
| Option | Type | Default | Notes |
|---|---|---|---|
ignores | string[] | [] | Extra globs appended to the built-in ignores |
files | string[] | all JS/TS/JSX/TSX | Globs the base JS/TS rules apply to |
react | boolean | true | Include React + React Hooks configs; false for non-React |
globals | Linter.Globals | {} | Extra globals merged over browser + node |
rules | Linter.RulesRecord | {} | Rules applied on top of the base config |
oxlint | boolean | OxlintConfig | false | Turn off ESLint rules oxlint covers (eslint-plugin-oxlint) |
extend | Linter.Config[] | [] | Extra flat-config entries appended after the base config |
If the project also uses oxlint (or the user wants both), use:
import { createBaseEslintConfig } from '@jabraf/dev/eslint';
export default createBaseEslintConfig({ oxlint: true });
oxlint: true derives the rules to disable from the @jabraf/dev/oxlint
base config (respecting react). If the project has a custom oxlint config,
pass that object instead of true. The oxlint entries are appended last, so
a rule re-enabled via rules/extend that oxlint covers stays off.
Add scripts. Add to package.json scripts, only if absent:
{
"scripts": {
"lint": "eslint .",
},
}
If the user has source segregated under src/, propose eslint src instead.
When running alongside oxlint, use "lint": "oxlint src && eslint src" (oxlint first for fast feedback). [wait for user if conflict]
Validate. Run <pm> run lint. Report the outcome:
lint --fix when you're ready, or open them up to triage."Final report. Summarize: package manager detected, install status, config file written, scripts added, validation outcome.
.eslintrc* files without explicit confirmation.package.json scripts without explicit confirmation.@jabraf/dev to a specific version — install at latest.lint --fix as part of setup. Validation is read-only.eslint.config.{js,ts} and package.json scripts.| Situation | Action |
|---|---|
Project has no package.json | Stop. Ask the user to initialise the project first (npm init -y). |
| Both flat and legacy ESLint configs exist | Flag explicitly. ESLint 10 ignores .eslintrc* entirely, but it will confuse editors and CI. Ask before deleting. |
| Project uses ESLint < 10 | @jabraf/dev ships ESLint 10. Warn the user, and ask whether to upgrade (remove any direct eslint@<10 dep). [wait for user] |
Project uses eslint-plugin-react | @jabraf/dev replaced it with @eslint-react (incompatible with ESLint 10). Rule names change react/* → @eslint-react/*; update any overrides/disables. |
| Project also uses oxlint | Use createBaseEslintConfig({ oxlint: true }) and run oxlint before eslint in the lint script. |
Monorepo (workspaces present) | Ask whether to add at the repo root, in a specific workspace, or both. [wait for user] Repeat steps 3–7 in each chosen location. |
Existing .eslintignore | Leave it alone. Note: flat config ignores live inside eslint.config.*; the base config's built-in ignores cover dist, build, node_modules. |
| Non-React project | The base config enables React + React Hooks rules by default. Use createBaseEslintConfig({ react: false }) to drop them. |
| Network/install failure | Surface the package manager error verbatim and stop. Do not retry silently. |
@jabraf/dev ESLint docs: packages/jabraf-dev/README.md#eslint@jabraf/dev/eslint → ./dist/config/code-linting/eslint.base.js (see packages/jabraf-dev/package.json exports map)createBaseEslintConfig (factory) and baseEslintConfig (both named and default). baseEslintConfig === createBaseEslintConfig().@eslint-react/eslint-plugin (recommended-typescript); React Hooks rules come from eslint-plugin-react-hooks. @eslint-react's duplicate hooks rules are turned off. All bundled by @jabraf/dev.eslint-plugin-oxlint, bundled by @jabraf/dev. See the jabraf-oxlint skill.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/jabraf-skills:jabraf-eslintfrom 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-dev-setupOrchestrate a full `@jabraf/dev` setup in a project by invoking the granular `jabraf-*` skills in order — TSConfig, Prettier, ESLint, Vitest, Playwright (when relevant), commitlint, lint-staged. Load when the user asks for the full `@jabraf/dev` stack, a greenfield setup, or "everything from `@jabraf/dev`". Requires the granular skills to be installed alongside this one./jabraf-ground-rulesJabran's ground rules for every project — how to work (clarify first, stay scoped, report real results) plus default stack (Cloudflare, Tailwind v4), TypeScript, testing, git/PR, gh, CI, security and docs conventions, and the cloud-session rules (git identity, plan-only main agent, model choices). Load at the start of any coding, repo, review, commit, PR or GitHub Actions task, and whenever a repo's AGENTS.md points to it or is silent on a convention./jabraf-lint-stagedSet up lint-staged in a project using `@jabraf/dev`'s shared base (runs Prettier on stage, then ESLint and/or oxlint + related Vitest specs), wired through Husky for the `pre-commit` hook. Load when the user asks to add lint-staged, configure `.lintstagedrc`, set up a `pre-commit` hook for staged files, or wire up `@jabraf/dev` lint-staged specifically./jabraf-oxlintSet 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.