@maxchang/eslint-config
v1.0.13
Published
Max Chang's ESLint config
Downloads
221
Readme
@maxchang/eslint-config
Max Chang's ESLint config preset, just a personalized version of @antfu/eslint-config, for personal use.
See usage and more details in @antfu/eslint-config.
Usage
pnpm i -D eslint @maxchang/eslint-config
Create eslint.config.mjs in your project root:
// eslint.config.mjs
import defineConfig from '@maxchang/eslint-config'
export default defineConfig()
Convention
- Base on
@antfu/eslint-config
- Auto fix for formatting, enable fomatters by default(HTML, CSS, Markdown).
- Style principle: Minimal for reading, stable for diff, consistent
- 4 spaces for indentation (except for JSON)
- Sorted imports, dangling commas
- Single quotes, no semi
- Using ESLint Stylistic
VSCode Config Reference
Auto fix on save & use eslint as formatter