Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/2nthony/eslint-config

Personal usage, extended from antfu/eslint-config
https://github.com/2nthony/eslint-config

eslint eslint-config

Last synced: 2 months ago
JSON representation

Personal usage, extended from antfu/eslint-config

Awesome Lists containing this project

README

        

# @2nthony/eslint-config

[![version](https://img.shields.io/npm/v/@2nthony/eslint-config?label=&color=29BC9B)](https://npm.im/@2nthony/eslint-config) [![downloads](https://img.shields.io/npm/dm/@2nthony/eslint-config?label=&color=29BC9B)](https://npm.im/@2nthony/eslint-config)

**Extended from [@antfu/eslint-config](https://github.com/antfu/eslint-config), go to see details**.

[Legacy Version](https://github.com/2nthony/eslint-config/tree/v1.1.2)

## Usage

### Install

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

### config file

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

export default _2nthony()
```

### VSCode

```json
{
"eslint.experimental.useFlatConfig": true
}
```

## Rules(diffs to antfu)

```js
// error
if (foo) bar()
if (foo)
bar()

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

## Sponsors

[![sponsors](https://cdn.jsdelivr.net/gh/2nthony/sponsors-image/sponsors.svg)](https://github.com/sponsors/2nthony)

## License

MIT © [2nthony](https://github.com/sponsors/2nthony)