# antfu/eslint-config

Anthony's ESLint config preset

Repository: https://github.com/antfu/eslint-config
Canonical: https://ross.abutalabs.com/products/eslint-config
Homepage: https://eslint-config.antfu.me/
Language: JavaScript
License: MIT
License Family: permissive
Topics: eslint-config, eslint, eslint-flat-config
Last push: 2026-08-06T05:12:42+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 96, release rhythm 84, longevity 100
- inputs: {"age_days": 2604, "days_push": 27, "days_rel": 27, "gap_med": 2.5, "n_releases_24m": 113}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6253, forks 576 (observed 2026-08-28T04:09:41.030838+00:00)

## What it is
A shareable ESLint flat config preset by Anthony Fu that provides opinionated linting and auto-fix formatting for JavaScript, TypeScript, Vue, React, JSON, YAML, TOML, Markdown, and more with a single line of setup. It replaces Prettier via ESLint Stylistic, respects .gitignore, and ships a CLI wizard for one-command setup and legacy config migration.

## Use cases
- set up eslint for a typescript and vue project with one line of config
- replace prettier with eslint for code formatting
- migrate legacy eslintrc config to eslint flat config
- get an opinionated javascript code style preset with sorted imports and no semicolons
- lint json, yaml, toml, and markdown files out of the box
- enforce consistent code style across a javascript monorepo

## When to choose
- you want an out-of-the-box ESLint setup without hand-picking dozens of rules
- you prefer linting and formatting in a single tool instead of running Prettier alongside ESLint
- your project uses TypeScript, Vue, React, Svelte, Astro, Solid, or UnoCSS and you want first-class support
- you like Anthony Fu's code style (single quotes, no semicolons, sorted imports) and want it enforced automatically

## When to avoid
- you need a neutral, fully customizable baseline and dislike opinionated style choices like no semicolons
- you are still on ESLint below v9.5.0 or cannot adopt flat config
- your team requires strict control over every rule change, since this is a personal config that may change between releases (forking is recommended in that case)

## Facets
- artifact type: plugin
- maturity: stable
- function: linter, formatter, developer-tools, cli
- domain: developer-tools, web-development, frontend
- platform: cli
- tags: eslint, eslint-flat-config, shareable-config, code-style, linting, prettier-replacement, typescript, vue, code-quality, opinionated-defaults, nodejs

## Member repositories
- antfu/eslint-config (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:41.030838+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:46:35.885671+00:00, confidence not recorded.
  - readme: https://github.com/antfu/eslint-config (fetched 2026-08-28T04:09:41.030838+00:00, sha fc06a9e2fbd5)
  - homepage: https://eslint-config.antfu.me/ (fetched 2026-08-29T08:43:29.478174+00:00, sha 40d57aaeb2ff)
- Data as of 2026-08-30T08:39:29.467469+00:00.
