configure-linting
Skill7 starsChanged 16 days agoMITView on GitHub
Use when setting up lint and format in a frontend project - installs Biome as the only linter, formatter, import sorter and Tailwind class sorter (replacing ESLint/Prettier), with Vue SFC support, a lefthook pre-commit hook and a CI check.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- VelimirMueller/claude-skillsword for word, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 1
- VelimirMueller/claude-skills★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository156 other files it gives its agents.
- skills/swift/swiftui-design-principles/AGENTS.mdAGENTS.md
- skills/swift/ios-code-audit/CLAUDE.mdCLAUDE.md
- skills/swift/swift-focusengine-pro/llms.txtllms.txt
- build-llm-seamSkill
- build-mcp-serverSkill
- build-rag-pipelineSkill
- secure-llm-featuresSkill
- set-up-llm-evalsSkill
- build-nextjs-backendSkill
- build-supabase-edge-functionSkill
- configure-backend-testsSkill
- design-http-apiSkill
- harden-backendSkill
- scaffold-fastapi-serviceSkill
- scaffold-go-serviceSkill
- scaffold-hono-serviceSkill
- secure-supabase-rlsSkill
- set-up-backend-authSkill
- set-up-background-jobsSkill
- set-up-databaseSkill
- set-up-nextjs-supabase-authSkill
- set-up-observabilitySkill
- set-up-supabaseSkill
- build-cliSkill
- release-cliSkill
- set-up-dev-toolchainSkill
- audit-securitySkill
- audit-toolchainSkill
- extend-skillsetSkill
- promote-releaseSkill
- set-up-stack-profileSkill
- write-commit-messagesSkill
- write-pull-requestsSkill
- analyze-complexitySkill
- apply-algorithmsSkill
- apply-design-patternsSkill
- apply-design-principlesSkill
- apply-solidSkill
- choose-data-structureSkill
- debug-systematicallySkill
- enforce-dependency-ruleSkill
- refactor-safelySkill
- slice-and-estimateSkill
- write-clean-testsSkill
- write-readable-codeSkill
- clean-frontend-scaffoldingSkill
- configure-accessibilitySkill
- configure-analyticsSkill
- configure-ciSkill
- configure-error-trackingSkill
- configure-test-stackSkill
- configure-typescriptSkill
- create-moduleSkill
- optimize-performanceSkill
- scaffold-frontend-projectSkill
- set-up-authSkill
- set-up-design-systemSkill
- set-up-document-headSkill
- set-up-error-boundariesSkill
- set-up-feature-flagsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read .claude/stack-profile.md if present: lint_format.ts is biome by default.
- Very specific: line 21
oxlintfrom the Vite 8 React template?: Remove oxlint, .oxlintrc.json and the "lint": "oxlint" script — Biome owns lint.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Configure Linting
1. Audit current state
Read .claude/stack-profile.md if present: lint_format.ts is biome by default. Any other value (an ESLint/Prettier or Oxlint setup the team chose) means follow it: say so, add nothing from this skill, and stop. package_manager replaces pnpm below (../_shared/stack-versions.md, "Stack profile").
Detect what's already present:
ls biome.json biome.jsonc .prettierrc* prettier.config.* .prettierignore eslint.config.* .eslintrc* lefthook.yml .husky 2>/dev/null
grep -E '"(@biomejs/biome|prettier|prettier-plugin-tailwindcss|eslint|oxlint|lefthook)"' package.json 2>/dev/null
grep -E '"(recommended)"\s*:' biome.json 2>/dev/null # pre-2.5 config — run `biome migrate`- Prettier present? Port its options with
pnpm biome migrate prettier --write, then delete the Prettier config,.prettierignore,prettierandprettier-plugin-tailwindcss. Seelint-and-format.md. - ESLint present? Port the rules with
pnpm biome migrate eslint --write, review the diff, then delete the ESLint config + deps. Don't silently delete a config someone tuned — say what moved and what Biome can't cover. oxlintfrom the Vite 8 React template? Removeoxlint,.oxlintrc.jsonand the"lint": "oxlint"script — Biome owns lint.
2. Decide what to do
- Nothing → full setup (steps 3–7).
- Biome + Prettier (or ESLint) → migrate (step 1), then apply step 4.
- Biome with
formatter.enabled: false(the pre-0.6 split) → turn the formatter on, remove Prettier. - Biome-only and current → confirm lefthook + CI script, then exit "Linting already in place."
3. Install (only what's missing)
pnpm add -D -E @biomejs/biome
pnpm add -D lefthook-E pins Biome to an exact version: a linter minor bump can add rules that fail CI, so reproducibility beats auto-upgrade here.
4. One tool — Biome lints, formats, sorts imports and classes
Biome is the only linter and formatter. One binary, one config, one pass. The Prettier options this plugin used (single quotes, 2-space indent, 80 columns) map 1:1 onto Biome's formatter, so the output keeps its shape.
biome.json (React)
{
"$schema": "https://biomejs.dev/schemas/2.5.15/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "ignoreUnknown": true },
"formatter": { "enabled": true, "indentStyle": "space" },
"javascript": { "formatter": { "quoteStyle": "single" } },
"css": { "parser": { "tailwindDirectives": true } },
"linter": {
"enabled": true,
"rules": {
"preset": "recommended",
"style": { "useImportType": "error" },
"nursery": {
"useSortedClasses": {
"level": "warn",
"fix": "safe",
"options": { "functions": ["cn", "clsx", "cva"] }
}
}
},
"domains": { "react": "recommended" }
},
"assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } }
}Vue — swap the domain, turn on full SFC support
{
"html": {
"experimentalFullSupportEnabled": true,
"formatter": { "enabled": true, "selfCloseVoidElements": "always" }
},
"linter": {
"rules": {
"style": { "useVueMultiWordComponentNames": "off" }
},
"domains": { "vue": "recommended" }
}
}Add html to the React file, add useVueMultiWordComponentNames to the existing rules.style (keep preset, useImportType and useSortedClasses), and replace the react domain with vue. Full support makes Biome read the <template>: Vue rules (useVueVForKey, noVueVIfWithVFor, …), a11y rules (useAltText, useButtonType, …) and formatting all apply, and template usage no longer looks like unused variables. vue-tsc stays the type check for templates. Single-word names (Button.vue) stay allowed so components map 1:1 to React.
presetreplaces the deprecated"recommended": true(Biome 2.5). Match the$schemaversion to the Biome you installed.style.useImportTypemirrorsverbatimModuleSyntaxfromconfigure-typescript.useSortedClassesis a nursery rule with an unsafe fix by default;"fix": "safe"letsbiome check --writesort classes likeprettier-plugin-tailwindcssdid. It sortsclass/classNameand the strings passed tocn()/clsx()/cva().css.parser.tailwindDirectiveslets Biome parse@theme,@custom-variantand@apply.
5. package.json scripts
{
"scripts": {
"lint": "biome check",
"lint:fix": "biome check --write",
"format": "biome format --write",
"check": "biome ci",
"prepare": "lefthook install"
}
}Local + pre-commit use --write (autofix); CI uses biome ci (report, never fix). Type errors are pnpm typecheck (configure-typescript), a separate CI step: Biome does not type-check, and Vue templates need vue-tsc. prepare installs the git hooks on every pnpm install (pnpm blocks dependency install scripts by default, so the lefthook package cannot do it).
6. Pre-commit with lefthook
lefthook (one Go binary, one YAML file) over husky. Keep the hook fast — fix staged files only.
lefthook.yml
pre-commit:
commands:
biome:
glob: "*.{js,jsx,ts,tsx,vue,json,jsonc,css,html}"
run: pnpm biome check --write --no-errors-on-unmatched {staged_files}
stage_fixed: trueBiome does not format Markdown or YAML; leave them to the editor (the old Prettier hook did format them).
Install the git hooks now (later clones get them through the prepare script):
pnpm lefthook install7. Verify
pnpm biome ciExpected: passes (or reports fixable issues — run pnpm lint:fix, then re-check). pnpm lefthook run pre-commit exercises the hook. The same check runs in CI, so the hook is a convenience, not the gate.
References
- ./lint-and-format.md — why Biome alone, the Prettier/ESLint migration, the
useImportType↔verbatimModuleSyntaxlink, Vue full support and its limits, Tailwind class sorting, CI wiring. - ../_shared/stack-versions.md — Biome / tooling version policy.
- ../_shared/conventions.md —
@/alias, file naming,stores/rule.
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.

