Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/2nthony/eslint-config
- Owner: 2nthony
- License: mit
- Created: 2023-03-02T12:38:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T18:33:40.000Z (4 months ago)
- Last Synced: 2024-10-12T08:43:59.141Z (3 months ago)
- Topics: eslint, eslint-config
- Language: JavaScript
- Homepage:
- Size: 351 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)