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

https://github.com/dxhuii/eslint-config


https://github.com/dxhuii/eslint-config

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# @dxhuii/eslint-config

[![npm](https://img.shields.io/npm/v/@dxhuii/eslint-config?color=444&label=)](https://npmjs.com/package/@dxhuii/eslint-config)

- 现在 [@antfu/eslint-config](https://github.com/antfu/eslint-config#react) 已经支持了react, 在此的基础上增加了 react 的一些配置和一些自己的配置

## 使用

```bash
pnpm add -D @dxhuii/eslint-config @antfu/eslint-config
```

```js
// eslint.config.js
// 增加了 react 支持
import dxhuii from '@dxhuii/eslint-config'

// 默认不支持 react, 开启需要传入 react: true
import antfu from '@antfu/eslint-config'

export default antfu({}, dxhuii())
```

- 其他使用方法和 [@antfu/eslint-config](https://github.com/antfu/eslint-config#readme) 一样
- 开启支持react方法 [#react](https://github.com/antfu/eslint-config#react)

## 感谢

- [@antfu/eslint-config](https://github.com/antfu/eslint-config)