1.0.2 • Published 9 months ago
@pvfhv/eslint-config-ts v1.0.2
@pvfhv/eslint-config-ts
- 使用eslint对ts格式文件自动修复格式化
- 使用简单无需繁琐的添加配置
安装
pnpm add -D @pvfhv/eslint-config-ts
配置.eslintrc
{
"extends": ["@pvfhv/eslint-config-ts"]
}
添加命令
{
"lint:fix": "eslint . --fix",
"tsc": "tsc --noEmit --skipLibCheck"
}
VS Code 自动修复
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}