Skip to content

maxchang3/eslint-config

Repository files navigation

@maxchang/eslint-config

npm

Max Chang's ESLint config preset, is just a personalized version of @antfu/eslint-config, for personal use.

See usage and 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

  • Based on @antfu/eslint-config
  • Auto fix for formatting, enable formatters 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

See .vscode/settings.json

LICENSE

MIT

About

Just a personalized version of @antfu/eslint-config, for personal use.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors