Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Thanks to @antfu/eslint-config, because of it, creating code formats that suit our style has become much easier.
https://github.com/antzymo/eslint-config

eslint eslint-config

Last synced: 27 days ago
JSON representation

Thanks to @antfu/eslint-config, because of it, creating code formats that suit our style has become much easier.

Awesome Lists containing this project

README

        

# @antzy/eslint-config


English | 中文

感谢 [`@antfu/eslint-config`](https://github.com/antfu/eslint-config),正因为有了它,制定属于自己风格的代码格式已经不再是难事了。

## 用法

> Tips: 如果不想手动安装,[这里提供快速安装方法](https://github.com/AntzyMo/ieslint-cli),输入一条命令,省去重复配置操作。

### 手动安装
```bash
pnpm add eslint -D
pnpm add @antzy/eslint-config -D
```

### Config eslint.config.js
With `"type"`: `"module"` in package.json (recommended):
```js
import { antzy } from '@antfu/eslint-config'

export default antzy({
rules:{
/* your stylistic rules */
}
})
```

With CJS:
```js
const { antzy } = require('@antfu/eslint-config')

module.exports = antzy({
rules:{
/* your stylistic rules */
}
})

```

## License
[MIT](./LICENSE) License © 2023-PRESENT [AntzyMo](https://github.com/AntzyMo)