0.2.9 • Published 1 year ago
@anthony-ju/eslint-config v0.2.9
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.9
1 year ago
0.2.7
1 year ago
0.2.8
1 year ago
0.2.6
1 year ago
0.2.5
2 years 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
3 years ago
0.1.0
3 years ago
0.0.2
3 years ago
0.0.12
3 years ago
0.0.10
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.1
3 years ago