@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.955latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.955
0.2.86
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.21
0.2.11
0.2.01
0.1.41
0.1.31
0.1.21
0.1.12
0.1.01
0.0.22

Package Sidebar

Install

npm i @anthony-ju/eslint-config

Weekly Downloads

58

Version

0.2.9

License

MIT

Unpacked Size

2.52 kB

Total Files

4

Last publish

Collaborators

  • anthony-ju