1.0.11 • Published 9 months ago

@maxchang/eslint-config v1.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@maxchang/eslint-config

npm

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

See .vscode/settings.json

LICENSE

MIT

1.0.11

9 months ago

1.0.9

9 months ago

1.0.10

9 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago