Skip to content

Personal usage, extended from antfu/eslint-config

License

Notifications You must be signed in to change notification settings

2nthony/eslint-config

Repository files navigation

@2nthony/eslint-config

version downloads

Extended from @antfu/eslint-config, go to see details.

Legacy Version

Usage

Install

npm i -D eslint @2nthony/eslint-config

config file

// eslint.config.js
import { _2nthony } from '@2nthony/eslint-config'

export default _2nthony()

VSCode

{
  "eslint.experimental.useFlatConfig": true
}

Rules(diffs to antfu)

// error
if (foo) bar()
if (foo)
  bar()

// correct
if (foo) {
  bar()
}

Sponsors

sponsors

License

MIT © 2nthony