https://github.com/dxhuii/eslint-config
https://github.com/dxhuii/eslint-config
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dxhuii/eslint-config
- Owner: dxhuii
- License: mit
- Created: 2023-09-22T11:47:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T08:02:12.000Z (12 months ago)
- Last Synced: 2024-11-04T14:12:04.904Z (6 months ago)
- Language: TypeScript
- Size: 337 KB
- Stars: 18
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @dxhuii/eslint-config
[](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)