@anthony-ju/eslint-config

0.2.9 • Public • Published

personal eslint config

安装

搭配 @antfu/eslint-config 进行使用:

pnpm i -D eslint @antfu/eslint-config @anthony-ju/eslint-config

使用

在根目录创建eslint.config.js文件,并将以下内容添加到文件中:

With "type": "module" in package.json (recommended):

import antfu from '@antfu/eslint-config'
import { ignores, rules } from '@anthony-ju/eslint-config'

export default antfu(
  {
    rules,
    ignores,
  },
)

With CJS:

const antfu = require('@antfu/eslint-config').default
const { ignores, rules } = require('@anthony-ju/eslint-config')

module.exports = antfu(
  {
    rules,
    ignores,
  },
)

Add script for package.json:

{
  "scripts": {
    "lint": "eslint --fix"
  }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.92latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.92
0.2.81
0.2.71
0.2.61
0.2.51
0.2.41
0.2.31
0.2.21
0.2.11
0.2.00
0.1.41
0.1.31
0.1.22
0.1.10
0.1.02
0.0.21

Package Sidebar

Install

npm i @anthony-ju/eslint-config

Weekly Downloads

17

Version

0.2.9

License

MIT

Unpacked Size

2.52 kB

Total Files

4

Last publish

Collaborators

  • anthony-ju