2nthony / eslint-config

Personal usage, extended from antfu/eslint-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@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

About

Personal usage, extended from antfu/eslint-config

License:MIT License


Languages

Language:JavaScript 100.0%