Tools/antfu/eslint-config

eslint-config

Anthony's ESLint config preset

6.2k+7/wkemergingJavaScriptMIT Licensetrending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated May 2026

Anthony Fu's personal ESLint config, published as a preset. One line of setup in your eslint.config.js and you get linting, formatting, sorted imports, and reasonable defaults across TypeScript, JSX, Vue, JSON, YAML, and Markdown. The selling point is that it replaces Prettier entirely. Formatting happens inside ESLint, which means one tool, one config, one CI step.

It uses ESLint's flat config format, so you'll need ESLint 9.5 or newer. Framework support for React, Next.js, Svelte, UnoCSS, Astro, Solid, and Angular is opt-in via flags. Vue and TypeScript detection is automatic. The starter wizard at `pnpm dlx @antfu/eslint-config@latest` will scaffold the config and the package.json scripts for you.

Use this if you trust Antony Fu's taste, which most of the Vue and Nuxt ecosystem does. Solo: install it. Small teams: install it and commit to the opinions. Large teams with existing style guides: it's a hard rip-and-replace, but worth evaluating if you're tired of the ESLint plus Prettier plus stylelint stack.

The catch: it's opinionated. Single quotes, no semicolons, dangling commas, sorted imports, all non-negotiable by default. The README literally says "changes might not always work for everyone." If your team has strong existing conventions, expect arguments.

Free vs Self-Hosted vs Paid

fully free

Free: MIT license, full preset, no feature gating. Maintained by Anthony Fu on his own time.

Self-hosted: No hosting concept. It's a JavaScript package you install from npm.

Paid: None. Anthony Fu funds his work through GitHub Sponsors. Free to use commercially.

Free MIT preset. No paid tier exists; sponsor Anthony if you use it daily.

Self-hosting ops:trivial
View pricing page →

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
82/100 · A
Adoption21/30
Maintenance25/25
Community11/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Community discussions enabledNotable author: 39,277 followersAuthor also built: antfu/tsnapi (172 stars)

License: MIT License

Use freely, including commercial. Just keep the license.

Commercial use: ✓ Yes

About

Owner
Anthony Fu (User)
Stars
6,249
Forks
577

Also by Anthony Fu

Explore Further

More tools in the directory