Forked from antfu/eslint-config
- Single quotes, no semi
- Auto fix for formatting (aimed to be used standalone without Prettier)
- Designed to work with TypeScript, Vue, React out-of-box
- Lints also for json, yaml, markdown
- Sorted imports, dangling commas
- Reasonable defaults, best practices, only one-line of config
- Respects
.gitignore
by default - ESLint Flat config, compose easily!
- Using ESLint Stylistic
- Style principle: Minimal for reading, stable for diff, consistent
pnpm i -D eslint @pionxzh/eslint-config
create eslint.config.mjs
in your project root:
// eslint.config.mjs
import pionxzh from '@pionxzh/eslint-config'
export default pionxzh()
Learn more about the context - Why I don't use Prettier.