0.2.5 • Published 4 months ago

@anthony-ju/eslint-config v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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"
  }
}
0.2.5

4 months ago

0.2.4

5 months ago

0.2.3

5 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.4

10 months ago

0.2.2

8 months ago

0.1.3

10 months ago

0.1.2

11 months ago

0.1.1

12 months ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.12

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.1

1 year ago