0.2.8 • Published 9 months ago

@anthony-ju/eslint-config v0.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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.7

9 months ago

0.2.8

9 months ago

0.2.6

10 months ago

0.2.5

1 year ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.2.2

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago