1.0.11 • Published 8 months ago

@maxchang/eslint-config v1.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
8 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

8 months ago

1.0.9

9 months ago

1.0.10

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago