0.0.2 • Published 11 months ago
@dylan66ty/eslint-config-base v0.0.2
@dylan66ty/eslint-config-base
- 通用的默认配置
安装
pnpm add -D @dylan66ty/eslint-config-base
配置.eslintrc
{
"extends": ["@dylan66ty/eslint-config-base"]
}
添加命令
{
"lint:fix": "eslint . --fix"
}
VS Code 自动修复
- 项目中新建.vscode/setting.json
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}